Add profiler
Add a profiler with perf
and FlameGraph
Process:
- [ Not-included ] Profile memory check [https://www.brendangregg.com/FlameGraphs/memoryflamegraphs.html]
linux kernel header missing in docker - try with several methods, install, build from source - nothing works - let's try with https://opeonikute.dev/posts/how-to-set-up-bcc-for-ebpf-on-mac-os still does not work. Take out at the moment.
-
Run perf
andFlameGraph
-
Doc on how to run on personal computer
Note:
- Run docker with
--privileged
flag
Ref:
- Explanation https://stackoverflow.com/questions/375913/how-do-i-profile-c-code-running-on-linux
- Installation https://linoxide.com/install-perf-tool-centos-ubuntu/ https://github.com/brendangregg/FlameGraph/issues/245
- Flamegraph Doc https://www.brendangregg.com/perf.html#FlameGraphs
- https://developer.ridgerun.com/wiki/index.php/Profiling_with_GPerfTools