Thank you Daniel, I am installing valgrind now. I have used a profiler for another language. I 'll see what I can learn with google and man. On the other hand, if I am attached to the running compiz with gdb, is there a way to state the currently running function ? I would still like to test my idea if only for curiosity. Suppose every 30 seconds I have gdb output the active function. I am curious if as compiz eats more CPU, the output function will be more likely to be the function that is the cause. On Sat, Jan 28, 2012 at 3:01 AM, Daniel van Vugt