Linux Tools Project - Valgrind Support
https://eclipse.org/linuxtools/projectPages/valgrind/
Eclipse 外掛︰ MAT, Memory Analyzer Tool (JAVA Only)
http://www.eclipse.org/mat/downloads.php
http://lp43.blogspot.tw/2011/11/mat.html
valgrind:
使用valgrind檢查C語言memory leak
# apt-get install valgrind
# valgrind --leak-check=full --show-leak-kinds=all --verbose ./My-Leaky-Program-Filename
mtrace:
在程式中加入兩行
#include <mcheck.h>
static void Main()
{
...
mtrace();
...
}
在終端機模式下
# mtrace ./My-Leaky-Program-Filename Memory_Leak.txt
沒有留言:
張貼留言