PHP Classes
elePHPant
Icontem

Solace profiler: Profiler to analyse the time spent by a script

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2004-05-22 (12 years ago) RSS 2.0 feedStarStarStar 59%Total: 1,320 This week: 1All time: 2,824 This week: 1,047Up
Version License Categories
solace_profiler 1.0FreewareStatistics, Utilities and Tools
Description Author

This class is meant to generate profile reports by analysing the time spent executing each part of a PHP script, adding the number of PHP interpreter passes and overall time in percentage for each line.

It may be useful to find slow or unused code, compare the speed of different code implementations, track loop counts and conditions, etc..

It may generate reports in plain text or HTML format.

It supports includes, evals and asserts. This class is compatible with both PHP 4 and PHP 5. It does not require any special extensions.

Innovation Award
PHP Programming Innovation award nominee
May 2004
Number 4


Prize: One book of choice by O'Reilly
Sometimes it is necessary to invest some effort in optimizing applications that make significant use of hardware resources to reduce the costs of maintaining the sites where the applications are hosted.

When the applications are large it is not always easy to tell what exactly needs to be optimized. The solution consists on finding the which parts of the application consume most of the time to execute. This is the goal of application profiling tools.

This class provide a solution for profiling PHP scripts. It uses the ticks callback handler functions to locate which parts of the application are executing and how long it is taking to finish.

With this information it can produce reports that can give the developer a better idea of which are the expensive parts of their application that may be more worth investing optimization effort.

Manuel Lemos
Picture of Zubov Ilya
Name: Zubov Ilya <contact>
Classes: 3 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Files folder image Files  
File Role Description
Plain text file class.solace.profiler.php Class Profiler class
Accessible without login Plain text file example.html Output Profiler report
Accessible without login Plain text file example.php Example Example script with profiling
Accessible without login Plain text file example_include.php Example Example included script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,320
This week:1
All time:2,824
This week:1,047Up
 User Ratings  
 
 All time
Utility:87%StarStarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1224