https://bugs.kde.org/show_bug.cgi?id=409606

--- Comment #1 from Milian Wolff <m...@milianw.de> ---
syscalls like mmap cannot be easily intercepted with LD_PRELOAD or similar,
which makes it quasi impossible to do with the current architecture of
heaptrack.

thankfully, you can easily use perf to achieve the same, since mmap calls are
usually done way less often than malloc calls!

    perf record --call-graph dwarf -e syscalls:sys_enter_mmap -- <your app>

interpreting the data may require some more work, but it should be relatively
easy I believe based on `perf script` textual output or even a python script.

That said: A convert from such mmap output to the heaptrack data format would
be nice, such that we can use the heaptrack GUI to investigate mmap usage.

Also: if anyone knows how to intercept mmap (ptrace?) I'd be all ears :)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to