package protopprof

import "runtime/pprof/internal/protopprof"

Package protopprof converts the runtime's raw profile logs to Profile structs containing a representation of the pprof protocol buffer profile format.

Index

Functions

func EncodeMemProfile

func EncodeMemProfile(mr []runtime.MemProfileRecord, rate int64, t time.Time) *profile.Profile

EncodeMemProfile converts MemProfileRecords to a Profile.

func TranslateCPUProfile

func TranslateCPUProfile(b []byte, startTime time.Time) (*profile.Profile, error)

TranslateCPUProfile parses binary CPU profiling stack trace data generated by runtime.CPUProfile() into a profile struct.

Source Files

protomemprofile.go protopprof.go

Version
v1.8.4
Published
Oct 4, 2017
Platform
linux/amd64
Imports
7 packages
Last checked
38 seconds ago

Tools for package owners.