PHP Classes
Icontem

Class: Script timer


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Juliette Reinders Folmer  >  Script timer  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Script timer Support forum
Base name: script_timer
Description: Measure the time a script takes to execute
Related top rated classes: , , ,
Version: -
Required PHP version: 3
License: GNU Lesser General Public License (LGPL)
All time users: 669 users
All time rank: 3163
Week users: 3 users
Week rank: 2103
 
  Screenshots Screenshots   Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Screenshots

Sample output
File Role Description
Accessible without login Image file sample_output.gif Screen Sample output

Author

Picture of Juliette Reinders Folmer
Name: Juliette Reinders Folmer <e-mail contact>
Published packages: 2 Browse this author's classes Browse this author's classes
Country: The Netherlands The Netherlands - PHP jobs in The Netherlands
Home page: http://www.adviesenzo.nl/
Age: 36
All time rank: 589
Week rank: 298

Groups

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

Detailed description

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

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

File Role Description
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 folder image classes
  Plain text file phpbbtemplate.inc Class PHPBB template parsing class for the html output parsing
Files folder image templates
  Plain text file script_timing.tpl Data Template for the html output
Files folder image Documentation
  Accessible without login HTML file script_timer.html Doc. Full documentation of all class methods and variables
Files folder image examples
  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.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products