프로그램 사용/valgrind

valgrind callgrind

구차니 2023. 7. 7. 10:54

valgrind는 일반적으로 메모리 누수를 찾는데 쓰지만

call graph라고 해야하나? call 관련 추적도 가능하다고 하니 다음에 돌려봐야겠다.

 tool에 여러가지 있는데 cachegrind 정도만 찾아봤던 흔적이 있네..

 

$ valgrind --tool=
32bit-core     arm-core       i386           mips64-cpu     power64-linux
32bit-linux    arm-vfpv3      lackey         mips64-fpu     powerpc
32bit-sse      arm-with       massif         none           s390-acr
64bit-avx      cachegrind     memcheck       power-altivec  s390-fpr
64bit-core     callgrind      mips           power-core     s390-vx
64bit-linux    dhat           mips-cp0       power-fpu      s390x
64bit-sse      drd            mips-cpu       power-linux    s390x-core64
amd64          exp-bbv        mips-fpu       power-vsx      s390x-linux64
amd64-avx      getoff         mips64         power64-core   s390x-vx
arm            helgrind       mips64-cp0     power64-core2  

 

 

[링크 : https://jchern.tistory.com/13]

[링크 : https://velog.io/@wjddms206/Valgrind-프로파일러-callgrind]

 

 

+

[링크 : http://www.cs.columbia.edu/~sedwards/presentations/iccad2003-somenzi.pdf]

[링크 : https://fileadmin.cs.lth.se/cs/Education/EDAF15/labs/lab4/index.html]