If you want to get a bit deeper, you could invest in a code profiler like ProDelphi. I've used this quite a bit to optimise my web server software.