Thread: Profiling LAMP App
m0nkeymafia

How do you guys profile your lamp sites?
I.e. the

php

  code, mysql, htaccess redirects the lot

For small sites its easy,but if u have say 20-50 queries on a page, tons of things going on it can be really hard.
I'm used to great profiling apps for windows and have no clue where to go for

php

 .
At the moment i simply use a simple timing script to estimate execution time, then profile any mysql queries by eye in

php

 myadmin.

So is there something i can easily use? Im unfortunately on shared hosting so dont have that much control over any installed server side apps.

But i would love it if i could get a break down like
$query = "" ......
- > 0.05% server time

do {} while ();
- > 5% server time

and so forth so i can see which queries and or

php

  functions take up the most time etc

Cheers

thedarkness

http://www.onlamp.com/pub/a/

php

 /2002/02/28/profiling

php

 .html

PEAR

  Benchmark package can help u get a handle on slow code.

Cheers,
td

m0nkeymafia

Ta dude


Perkiset's Place Home   Politics @ Perkiset's