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
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).

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.