pyroscope icon indicating copy to clipboard operation
pyroscope copied to clipboard

any plans to support cpp?

Open oak-tree opened this issue 5 years ago • 4 comments

oak-tree avatar Apr 12 '21 10:04 oak-tree

Hi @oak-tree

We currently have support for eBPF profiling — it allows for cpp profiling, but only work on Linux.

Is there any existing tools you (or others) would recommend for cpp profiling?

petethepig avatar Apr 14 '21 17:04 petethepig

Lots is going on in kernel space that is a bottleneck. It makes sense to do whole system eBPF tracing instead of just a few user space PIDs. For C/C++/Rust it's a matter of getting the debug symbols to the visualization server.

chadbrewbaker avatar May 04 '21 22:05 chadbrewbaker

Apart from eBPF, a specialized C/C++ profiler would also be possible, similar to the rust profiler. A key question here is what the best way to package the C++ agent would be (i.e. there's no Cargo for C++). Suggestions would be welcome here.

abeaumont avatar Feb 22 '22 11:02 abeaumont

A key question here is what the best way to package the C++ agent would be (i.e. there's no Cargo for C++). Suggestions would be welcome here.

You could do this pretty easily with Conan. If you're talking about binary deployment, then you could utilise the VirtualRunEnv generator to provide access to the package's binary directories in the local cache.

samuel-emrys avatar Mar 26 '22 13:03 samuel-emrys

closing as we recommend eBPF for this

Rperry2174 avatar Sep 29 '22 14:09 Rperry2174

There is already pretty good ones out there like tracy https://github.com/wolfpld/tracy

yhyu13 avatar Sep 14 '23 15:09 yhyu13