PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 1,327 All time: 2,914 This week: 560Up
Version License Categories
solace_profiler 1.0FreewareStatistics, 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: 46
All time rank: 51413 in Russian Federation Russian Federation
Week rank: 131 Up9 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Files folder image Files (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,327
This week:0
All time:2,914
This week:560Up
 User Ratings  
 
 All time
Utility:87%StarStarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1308