[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 */