Solved

PHP Profiling

Posted on 2003-12-02
5
240 Views
Last Modified: 2006-11-17
Hi

I need a good free program to profile PHP Scripts.

I need it to be a script that analyses(or runs) my code, and tells me how long it takes each part to run.

It can't be one that requires me to add profiling code into my actual Script(most of it is already written), and inserting a load more code would take a _lot_ of time, which kind of rules the PEAR profiler(and similar) out.

I don't have time to be experimenting/testing different ones at the present minute(and this is pretty urgent).

If anyone has any experience in this field............

I had a look at Califa, it seems to be what I want, but it also seems ancient, and I'm not sure if it will work with PHP4/PHP5 since it was written for PHP3, and doesn't seem to have changed since.
0
Comment
Question by:aolXFT
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:lozloz
Comment Utility
http://www.zend.com/store/products/zend-studio.php - click on the profiler there to see if it can do what you want.. i know it's not free, but you can try the evaluation version - not sure if it has the profiling features though. if you could get it for free some how then it looks like it'd do the job nicely

loz
0
 
LVL 13

Expert Comment

by:lozloz
Comment Utility
profiler is disabled in the evaluation unfortunately

loz
0
 
LVL 6

Author Comment

by:aolXFT
Comment Utility
APD(from PEAR) seems interesting. Anyone have any experience using it?

Zend Studio is out of the question since it is not free. No point in evaluating something that I know I'm not going to have.
0
 
LVL 6

Author Comment

by:aolXFT
Comment Utility
I've decided to go with APD from Pear.

I'm going to wrap it up into a script, so that I can run a command like php_profile script.php, and get the relevent output.

I've requested a closure from Community Service.
0
 
LVL 2

Accepted Solution

by:
Lunchy earned 0 total points
Comment Utility
The user has resolved his own question; points (500) refunded and question closed.

Lunchy
Friendly Neighbourhood Community Support Admin


0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now