Search

'callgrind'에 해당되는 글 1건

  1. 2011.05.04 valgrind를 이용한 C/C++ 디버깅

valgrind를 이용한 C/C++ 디버깅

C & C++ 2011. 5. 4. 11:29 Posted by TUNALEE

valgrind

설치:
# apt-get install valgrind
or
# yum install valgrind

callgrind 도구와 연동
$ valgrind --tool=callgrind ./a.out

결과 보기
$ kcachegrind callgrind.out.xxxxx

ref.
http://hermet.pe.kr/111117366


GNU profiler

compile
$ g++ -pg example.c

일반적인 방법으로 실행
$ ./a.out

See 'flat profile'
$ gprof ./a.out gmon.out -p

ref.
http://www.ibm.com/developerworks/library/l-gnuprof.html


프로그램 실행 시간 보기

$ time ./a.out

'C & C++' 카테고리의 다른 글

openMP in C/C++  (0) 2011.05.03
C++ deguggin using Visual Studio  (0) 2011.04.29