The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 17, 2019, 05:39:52 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Profiling LAMP App  (Read 2402 times)
m0nkeymafia
Expert
****
Offline Offline

Posts: 240


Check it!


View Profile
« on: May 13, 2007, 09:57:03 AM »

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

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
Logged

I am Tyler Durden
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #1 on: May 16, 2007, 02:29:10 AM »

http://www.onlamp.com/pub/a/php/2002/02/28/profilingphp.html PEAR Benchmark package can help u get a handle on slow code.

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
m0nkeymafia
Expert
****
Offline Offline

Posts: 240


Check it!


View Profile
« Reply #2 on: May 16, 2007, 05:39:46 AM »

Ta dude
Logged

I am Tyler Durden
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!