package
0.0.0-20231226080902-4a623d3140f4
Repository: https://github.com/blackfireio/go-blackfire.git
Documentation: pkg.go.dev
# README
PProf Reader
Library to read profiles written in go's pprof format.
PProf is sampled data encoded into protobufs, which is then gzipped.
internal/profile
is copied directly from golang's
src/runtime/pprof/internal/profile
directory.
This library reads a pprof profile and converts it to an edge based graph similar to Blackfire.
Usage:
fr, err := os.Open(filename)
if err != nil {
return nil, err
}
defer fr.Close()
profile, err := pprof_reader.ReadFromPProf(fr)
if err != nil {
return nil, err
}
err = pprof_reader.WriteBFFormat(profile, os.Stdout)
...