There is a "perf" package complementing the linux kernel package, for example if the kernel package is linux-image-4.17.0-3-amd64 the perf package is linux-perf-4.17. Also, take a look at this web page http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html about profiling by Brendan Gregg. Regards, Jörg.