4 ms·
Colleagues of mine use LD_PRELOAD for roll-you-own profiling. They supply their own `malloc`, for example, that does the same as regular-`malloc` but also write
by Xophmeister 9y ago
Colleagues of mine use LD_PRELOAD for roll-you-own profiling. They supply their own `malloc`, for example, that does the same as regular-`malloc` but also writes to a log file that can be analysed later.
- sebcat 9y agoMassif is a good tool for memory profiling: http://valgrind.org/docs/manual/ms-manual.html http://valgrind.org/docs/manual/ms-manual.html