iovisor / kubectl-trace

Schedule bpftrace programs on your kubernetes cluster using the kubectl
MIT License
2.04k stars 165 forks source link

feat: Add rbspy as a supported tracer, support post-processing #166

Closed dalehamel closed 3 years ago

dalehamel commented 3 years ago

This adds rbspy as a supported tracer, the first non-bpf based tracer, for profiling Ruby processes.

This also adds support for post-processing with tracers, and takes advantage of this to generate both speedscope and flamegraph output for rbspy.

leodido commented 3 years ago

Are we sure do we want non-bpf based tracers?

I believe this needs a bit more discussion between maintainers :)

dalehamel commented 3 years ago

Are we sure do we want non-bpf based tracers? I believe this needs a bit more discussion between maintainers :)

FYI we discussed this on slack, I'll be adding some official docs in another PR with guidance on what generic tracers we should accept, but the current thought is that as long as it doesn't require the target program be significantly modified, and follows these three pillars: