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.
v1.1.1
2024-05-20 17:27 UTC
Requires
- php: >=7.2
This package is not auto-updated.
Last update: 2026-02-24 01:40:55 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');