Jump to content

[SOLVED] Profiling apache


JustinM01

Recommended Posts

Hi all,

 

First off, I want to say that I'm basically a newb when it comes to apache and linux. Having said, that I'm wondering how to profile apache using valgrind. Basically, this is what I'm trying now:

 

valgrind --tool=callgrind --dump-instr=yes --trace-jump=yes -v /usr/local/apache2/bin/httpd -X

 

I then use kcachegrind to view the .out file.

 

Unforunately, the callgraph is just filled with things and when I look at the side bar I really don't see anything related to the MySQL stuff my site uses, i.e. connecting to, querying. if you follow this link: http://talks.php.net/show/oscon06/6 it'll show you what I was hoping to get. Maybe I'm not using kcachegrind right, but, I don't know. Any help would be appriciated.

Link to comment
https://forums.phpfreaks.com/topic/89444-solved-profiling-apache/
Share on other sites

I've never used that myself, but you might want to have a lok at xdebug, it has a plugin that loads into apache/php and you can get get profilling information straight from it, i haven't used that one personaly, i've only used the zend debugger & profiler myself (which is great) but you need to buy a copy of zend studio for it (AFAIK).

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.