Another great linux tool that helps a lot is oprofile sampling profiler. I wasn't able to find any working* profiler for 64bit FPC programs on windows, so I profile under Linux all the time.

* sampling + properly loads symbols from debug info