grafana / pyroscope-rs

Pyroscope Profiler for Rust. Profile your Rust applications.
Apache License 2.0
132 stars 22 forks source link

Combine multiple ruby requests into one pprof file #52

Closed Rperry2174 closed 1 year ago

Rperry2174 commented 1 year ago

Right now when using the ruby gem multiple tags are sent in multiple requests, but we should combine them into one (ideally pprof).

@petethepig will provide more info here later

petethepig commented 1 year ago

Some helpful tips on pprof:

We have docs on how to ingest pprof into pyroscope here.

Relations Diagram

pprof dot

pprof is basically a protobuf schema


You can see the pprof structure in json format using this tool from our main repo (figured it might be useful for debugging):

cat pkg/convert/testdata/cpu.pprof | go run scripts/pprof-view/main.go

Here's what the output looks like: https://gist.github.com/petethepig/e41226414e3f54a7c0eedb24c5a334da

korniltsev commented 1 year ago

implemented in https://github.com/pyroscope-io/pyroscope-rs/pull/60