profile your code, run it in debugger (good to have, just in case ;-)
In reply to Re: Profiling forking code? by jimc in thread Profiling forking code? by Jeppe