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: 2 340

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/luar/php-excimer

v1.1.1 2024-05-20 17:27 UTC

This package is not auto-updated.

Last update: 2025-10-06 23:47:23 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