Alexey Alexandrov
Alexey Alexandrov
> @aalexand thanks for your review. is this pr can be accepted? I haven't looked at it yet. Overall, we do not support any public API in pprof beyond the...
This seems convoluted. Can you instead run `pprof` command as a child process redirecting its output to a pipe that your program reads from?
Maybe that call is from https://github.com/google/pprof/blob/cf6d271c80826ef4d30d55512b5a77b115bd4b9c/internal/driver/cli.go#L98 where it sniffs the first argument to decide whether it's a binary or a profile?
If so, perhaps it might make sense to have a separate method to call like `o.Obj.Sniff` that would cheaply return a boolean whether the file looks like a supported binary...
My other guess would be that it could be from https://github.com/google/pprof/blob/cf6d271c80826ef4d30d55512b5a77b115bd4b9c/internal/driver/fetch.go#L437.
Could be. The profiles generated by gperftools should be in text format, can you take a look at what the mapping record section looks like in the input file?
What do the mappings look like in `pprof -raw `?
@Timmmm Which tool did you use to collect this profile? Is it from gperftools?
We don't plan to work on the feature any time soon, volunteers are welcome :)
Agree, this is useful.