Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-01-10 (9 months ago) | 60% | Total: 255 | All time: 7,860 This week: 571 |
Version | License | PHP version | Categories | |||
xbenchmark 1.11 | Freeware | 5.2 | PHP 5, Logging, Performance and optim... |
Description | Author | |||
This class can log time and resources used during PHP script execution until they exit without having to change the actual script code. Innovation Award
|
Benchmark trace & log any php, without modifying a single line of code. Usefull to trace access, monitoring run times & ram and debugging params (get / post / argv).
Copy XBenchmark.php anywhere on your system.
Works either in Windows & Linux
Modify your php.ini:
auto_prepend_file = /absolute/path/to/XBenchmark.php
Modify the .htaccess file under your DOCUMENT_ROOT dir, add:
php_value auto_prepend_file /absolute/path/to/XBenchmark.php
Modify your PHP file, put on top:
include_once "/absolute/path/to/XBenchmark.php";
In any case, verify that you have permissions on the XBENCHMARK_LOGS_DIR specified, and assign correct path to the XBenchmark.php file
After apache restart (only in "Method 1" needed),
Go to any website under your apache envieronment. You will have all logs saved under XBENCHMARK_LOGS_DIR/HOST.
Files (3) |
File | Role | Description |
---|---|---|
logfile_example.txt | Doc. | Log file |
readme.md | Doc. | Readme |
XBenchmark.php | Class | Xbenchmark |
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 |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
Github project |