Recommend this page to a friend! |
Download .zip |
Info | Example | View files (5) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2014-10-30 (1 year ago) | Not enough user ratings | Total: 132 | All time: 8,285 This week: 1,113 |
Version | License | PHP version | Categories | |||
script_profiler 1.0.0 | Custom (specified... | 5.4 | PHP 5, Time and Date, Performance and... |
Description | Author | |
This class can profile the execution of PHP scripts. |
App: PHP Script Profiler Version: 1.0.0 Author: MT Jordan <mtjo62@gmail.com> Copyright: 2014 License: zlib/libpng License ********************************************************************************** PHP Script Profiler is a script profiler that is designed to help determine execution time or memory bottlenecks in PHP scripts. ********************************************************************************* PHP Script Profiler Features: * Diagnose execution time errors or memory errors for intensive SQL queries * List unnecessary or unknown included/required files * Create unlimited profile points * Print to screen or save to local file Requirements: * PHP 5.4+ ********************************************************************************* Usage: <?php include 'profiler.php'; $profile = new profiler; //Create profile point $point_1 = $profile->start_profile( 'Profile Description 1' ); //Code to profile - ie: SQL Query, display data, etc. //End profile point $profile->stop_profile( $point_1 ); //Create profile point $point_2 = $profile->start_profile( 'Profile Description 2' ); //Code to profile - ie: SQL Query, display data, etc. //End profile point $profile->stop_profile( $point_2 ); //Print to screen echo "<pre>{$profile->print_profile()}</pre>"; //Write to file $profile->print_profile( 'logs/profile_log.txt' ); ?> |
Files |
File | Role | Description |
---|---|---|
example.php | Example | Example script |
license.txt | Lic. | License File |
profiler.php | Class | PHP Script Profiler is a script profiler |
profile_log.txt | Output | Example log file |
readme.txt | Doc. | Readme file |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.