Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (10 years ago) RSS 2.0 feedStarStarStarStar 62%Total: 1,301 All time: 2,734 This week: 1,419Up
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
Age: 36
All time rank: 48910 in Russian Federation Russian Federation
Week rank: 458 Up12 in Russian Federation Russian Federation Down
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,301All time:2,734
 This week:0This week:1,419Up
 User Ratings  
 
 All time
Utility:92%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:-
Examples:78%StarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:651