linux - Correlation between malloc_stats and /proc/pid/stat -
i working on embedded linux system. understand info malloc_stats , /proc/pid/stats provide. want know how info printed malloc_stats related memory usage info provided /proc/stats. background want instrument each thread in app check memory leaks.malloc_stats prints useful info cant used programatically./proc//task/ has useful info unable correlate heap memory used current thread.
have overlooked mallinfo()
library function? it's malloc_stats()
gets info from.
to reply question directly: info in /proc
reflect total memory usage of process, including slack space between memory allocations , free memory, memory that's beingness used wasn't allocated through malloc()
@ (e.g, stack, global/static variables, etc). malloc_stats()
break downwards what's allocated , isn't.
linux memory-leaks embedded malloc
No comments:
Post a Comment