I've written an apache module and I have used ab to benchmark apache server with my module enabled to find out the respective time it takes to process a request based on different files. However, I would like to find out exactly which part of my code in my apache module is taking up the most processing time so that I can optimize them accordingly. So what are the ways I could do to achieve this?

I've read about Valgrind as one of the profiling tools for C programs but for my case, I'm actually doing this in a server environment so I'm not sure how I could go about using Valgrind to profile apache modules while it's taking request? Or is there any other ways out that you guys could recommend me?

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.