Closed krlmlr closed 6 years ago
pprof -traces
aggregates consecutive identical stack traces; can disaggregate by looking at duration in output of pprof -unit us -traces
.
pprof also parses the "legacy format" that might be replaced with a protobuf-based format. Options 3 and 4 are out of scope, it feels better to embed the pprof Go library (option 2).
Resources:
Thanks @romainfrancois!
Cool. At some point I need to commit to do some proper R/go bridge. These articles just scratch the surface. Knowing there are potential use cases beyond "that would be cool" does help.
Unfortunately, at this point pprof doesn't export its symbolizer API. We'd need to fork the project and add our own API, or examine existing forks. At this point the easiest route seems to be 1), but we still can/should build the executable ourselves.
Opened a pprof issue: https://github.com/google/pprof/issues/281
currently requires
pprof
, a Go program. Need to do one of the following:pprof
A first implementation will focus on the first option and require a compatible version of
pprof
that can be found by the package.