Hacker News new | ask | show | jobs
by wyldfire 1225 days 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.

1 comments

> 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

> However, as a practical matter those solutions might omit mmap which some applications might use for anonymous allocations.

Bytehound also gathers mmaps. (: