-p는 prof용
-pg는 gprof용
$ 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.
[링크 : 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
'프로그램 사용 > 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 |