luar / php-excimer
Implements the MediaWiki Excimer class for ease of use. Generate a json file that you can upload to speedscope.app to view the profile.
Installs: 1 394
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
This package is not auto-updated.
Last update: 2025-05-05 21:49:46 UTC
README
This package implements the MediaWiki Excimer class for ease of use. Generate a json file that you can upload to speedscope.app to view the profile.
Installation
Require PHP 7.2 and requires installing the excimer extension in your php.ini.
extension=excimer.so
Installation with composer.
composer require luar/php-excimer
Usage
To use it simply include the following in php file:
Use:
use Luar\Excimer;
For profiling
Excimer::trace('/var/profiles/', 'filename', $_SERVER['REQUEST_URI']);
For a save a CSV file with time and memory used.
Excimer::startTimer('/var/metrics/', 'php-memory-usage');