Login   Register  
PHP Classes
elePHPant
Icontem

Script timer

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Juliette Reinders Folmer
Name: Juliette Reinders Folmer <e-mail contact>
Packages: 2 Browse all classes by Juliette Reinders Folmer Browse all classes by
Country: The Netherlands The Netherlands - PHP jobs in The Netherlands
Age: 39
All time rank: 51114 in The Netherlands The Netherlands
Week rank: 574 Down17 in The Netherlands The Netherlands Down


  Detailed description   Download .zip .tar.gz  
This class can be used to measure the time a script takes to execute.

It can take note of the time it takes reach each part of a script takes to run and displays the results in a HTML table, so it can be used to analyse which parts of the script may need optimization.

It features:

* Add time markers recorded before class instantiation
* Temporarily pause the timer
* Group markers by script
* Optionally add subtotals per script (group)
* Uses PHP bcmath functions if possible for better accuracy
* Adjustable precision for the calculations
* Adjustable precision for the output
* Provides the following measurements:
- run time for the marker (excluding processing by this class)
- run time for the marker as a percentage of the total run time
- cumulative run time up to the marker
- cumulative percentage
* Customizable presentation of the results returning:
- a bi-dimensional array for custom external result processing
- an HTML string for use with a template system
- HTML for presentation to the user without further processing
* The details of presentation of the results can be customized with CSS

  Classes of Juliette Reinders Folmer  >  Script timer  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Script timer
Base name: script_timer
Description: Measure the time a script takes to execute
Version: -
PHP version: 3
License: GNU Lesser General Public License (LGPL)
All time users: 782 users
All time rank: 3803
Week users: 1 user
Week rank: 2150 Up
 
  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Performance and optimization Tools to measure and optimize the performance of systems View top rated classes

  Files folder image Screenshots  
Sample output
File Role Description
Accessible without login Image file sample_output.gif Screen Sample output


  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Files folder imageclasses (1 file)
Files folder imagetemplates (1 file)
Files folder imageDocumentation (1 file)
Files folder imageexamples (1 file)
Plain text file script_timer.inc.php Class Class file
Plain text file script_timer_nodoc.inc.php Class Class file without the docblock documentation

  Files  /  Files folder image classes  
File Role Description
  Plain text file phpbbtemplate.inc Class PHPBB template parsing class for the html output parsing

  Files  /  Files folder image templates  
File Role Description
  Plain text file script_timing.tpl Data Template for the html output

  Files  /  Files folder image Documentation  
File Role Description
  Accessible without login HTML file script_timer.html Doc. Full documentation of all class methods and variables

  Files  /  Files folder image examples  
File Role Description
  Plain text file script_timer_example.php Example Example of how to use the script timer class

Download all files: script_timer.tar.gz script_timer.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.