프로그램 사용/gcc2016.02.25 13:54

-p는 prof용

-pggprof용


$ man gcc

       -p  Generate extra code to write profile information suitable for the analysis program prof.  You must

           use this option when compiling the source files you want data about, and you must also use it when

           linking.


       -pg Generate extra code to write profile information suitable for the analysis program gprof.  You

           must use this option when compiling the source files you want data about, and you must also use it

           when linking.



Unlike prof, gprof is capable of limited call graph collecting and printing.

[링크 : https://en.wikipedia.org/wiki/Gprof]


gprof was invented specifically because prof only gives you "self time"

[링크 : http://stackoverflow.com/questions/17612370/whats-the-difference-between-prof-and-gprof]


위키 내용은 prof가 나은거 같지만..

prof는 self time만 잴수 있다는 단점? 머.. 일장일단 정도일려나?


---


$ prof

The program 'prof' is currently not installed. You can install it by typing:

sudo apt-get install profphd


$ man prof
 prof - secondary structure and solvent accessibility predictor

얘는 다른앤가?


신고

'프로그램 사용 > gcc' 카테고리의 다른 글

gcc -fPIC  (0) 2016.06.22
gcc dependency .d 파일?  (0) 2016.03.28
gcc -p -pg  (0) 2016.02.25
gcc -M -MM  (0) 2015.12.17
gcc 초기화 관련  (0) 2015.10.21
precompiled header on GCC (라즈베리로 테스트)  (2) 2015.07.30
Posted by 구차니

댓글을 달아 주세요