kubectl-trace icon indicating copy to clipboard operation
kubectl-trace copied to clipboard

Ability to obtain flame graphs

Open leodido opened this issue 6 years ago • 6 comments

Since flame graph supports bpftrace I propose to create a new feature making users of kubectl-trace able to obtain flame graphs.

Not sure yet whether such feature should be implemented from a flag or from a new command.

We'll investigate further cc @fntlnz.

leodido avatar Jun 05 '19 21:06 leodido

Flame graphs support is not in bpftrace but in the Flamegraph repo from @brendangregg there's an utility to convert profiles from a bpftrace output to an input that can be fed into a Flame graph.

https://github.com/brendangregg/FlameGraph/blob/master/stackcollapse-bpftrace.pl

fntlnz avatar Jun 06 '19 07:06 fntlnz

To me sounds exactly what I was saying :')

leodido avatar Jun 06 '19 07:06 leodido

lol sorry didn't understand

fntlnz avatar Jun 10 '19 08:06 fntlnz

Bump - still interested in this :)

dalehamel avatar Sep 16 '19 13:09 dalehamel

i still interests too any progress?

i planned make kube-flame project especially to run pyflame, py-spy, rbspy and go-torch inside Pods, like https://github.com/aylei/kubectl-debug

Slach avatar Oct 08 '19 17:10 Slach

There's a poc in this PR #74 @Slach - still have to find some time to finish it :)

fntlnz avatar Oct 10 '19 08:10 fntlnz