How to get the flame graph of a process running in a container
pkking opened this issue · 1 comments
pkking commented
I have a openresty process running in a docker container.
My work steps:
- Run
sample-bt-off-cpu -t 5 -p 4690 -u/-k
on the host - Run
./stackcollapse.pl offcpu1.bt |./flamegraph.pl > sample-bt-off-cpu.svg
Results: - A perfect kernel space flame graph
- A unusual user space flame graph like this
MY QUESTION is, can this toolkit work with container or what i missed?