The collector can attach to a tracepoint and collect backtraces; later the traces can be dumped as a histogram.
805ffcb core: add a callstack collector
build.mk | 1 +
core/callstack.cc | 161 ++++++++++++++++++++++++++++++++++++++++++++++
include/osv/callstack.hh | 95 +++++++++++++++++++++++++++
3 files changed, 257 insertions(+)
Upstream: github.com