3 ms·
> the one thing which NMT does not report, despite what the name might suggest, is any memory allocated by native libraries, for instance invoked via JNI If yo
by twic 3y ago
> the one thing which NMT does not report, despite what the name might suggest, is any memory allocated by native libraries, for instance invoked via JNI
If you're using glibc, then malloc does have information about that, and provides ways to read it, so it's a shame this isn't exposed. It would be quite helpful in the face of suspected native library memory leaks.
- strangemonad 3y agojemalloc + memleak and perf work pretty well in that case. I think you could do something similar with tcmalloc
- planede 3y agoIf we are talking replacing the libc allocator, then something like heaptrack is worth mentioning. https://github.com/KDE/heaptrack https://github.com/KDE/heaptrack