3 ms·
I'd be curious to see how this ptrace tool performs compared with one that relies on ELF symbol interposition (a la LD_PRELOAD). Other heap profilers (heaptrac
by wyldfire 4y ago
I'd be curious to see how this ptrace tool performs compared with one that relies on ELF symbol interposition (a la LD_PRELOAD). Other heap profilers (heaptrack, libtcmalloc, etc) use this method. Presumably the loader resolves the symbols once at load time and there's little cost overhead to switch to the profiler code.
However, as a practical matter those solutions might omit mmap which some applications might use for anonymous allocations.
- kouteiheika 4y ago> I'd be curious to see how this ptrace tool performs compared with one that relies on ELF symbol interposition (a la LD_PRELOAD). I've posted some very quick numbers in my comment here comparing it to Bytehound: https://news.ycombinator.com/item?id=34806401 https://news.ycombinator.com/item?id=34806401 > However, as a practical matter those solutions might omit mmap which some applications might use for anonymous allocations. Bytehound also gathers mmaps. (: