-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

얘는 다른앤가?


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

gcov와 gcovr  (0) 2023.07.20
gcovr - gocv 를 html로  (0) 2023.07.10
gprof gui  (0) 2023.07.10
gprof flat view 이해하기  (0) 2010.01.24
gcov, gprof  (0) 2010.01.23
Posted by 구차니