| 1 |
|
| 2 |
[Just a memo on how to profile stuff.] |
| 3 |
|
| 4 |
debuild -e DEB_BUILD_OPTIONS=nostrip,noopt |
| 5 |
|
| 6 |
|
| 7 |
opreport -lg #function level |
| 8 |
opreport -lgd #instruction level |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
/* |
| 14 |
|
| 15 |
__builtin_expect(!initialized,0) |
| 16 |
00001020 9 0.0061 cowdancer.c:134 libcowdancer.so find initialize_functions |
| 17 |
00001021 1 11.1111 cowdancer.c:134 |
| 18 |
00001023 1 11.1111 cowdancer.c:134 |
| 19 |
00001024 1 11.1111 cowdancer.c:134 |
| 20 |
0000102b 1 11.1111 cowdancer.c:134 |
| 21 |
0000103d 1 11.1111 cowdancer.c:140 |
| 22 |
00001048 2 22.2222 cowdancer.c:187 |
| 23 |
00001051 2 22.2222 cowdancer.c:187 |
| 24 |
|
| 25 |
|
| 26 |
__builtin_expect(!initialized,1) |
| 27 |
00001020 16 0.0131 cowdancer.c:134 libcowdancer.so find initialize_functions |
| 28 |
00001021 1 6.2500 cowdancer.c:134 |
| 29 |
0000102b 3 18.7500 cowdancer.c:134 |
| 30 |
00001037 1 6.2500 cowdancer.c:140 |
| 31 |
0000103d 2 12.5000 cowdancer.c:140 |
| 32 |
000011d9 1 6.2500 cowdancer.c:187 |
| 33 |
000011df 7 43.7500 cowdancer.c:187 |
| 34 |
000011fa 1 6.2500 cowdancer.c:194 |
| 35 |
|
| 36 |
*/ |