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

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');

Links