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