Daniel, this seems like exactly the task for a statistical profiler such as perf (https://perf.wiki.kernel.org/).
Daniel, this seems like exactly the task for a statistical profiler such as perf (https:/ /perf.wiki. kernel. org/).