PHP MIT

stopwatch

Provides a way to profile code

S

symfony

Dernière activité 14 août 2026
symfony/stopwatch

2,8 k

étoiles

14

forks

0

issues ouvertes

componentphpsymfonysymfony-component

Ce README est souvent en anglais.

Stopwatch Component

The Stopwatch component provides a way to profile code.

Getting Started

composer require symfony/stopwatch
use Symfony\Component\Stopwatch\Stopwatch;

$stopwatch = new Stopwatch();

// optionally group events into sections (e.g. phases of the execution)
$stopwatch->openSection();

// starts event named 'eventName'
$stopwatch->start('eventName');

// ... run your code here

// optionally, start a new "lap" time
$stopwatch->lap('foo');

// ... run your code here

$event = $stopwatch->stop('eventName');

$stopwatch->stopSection('phase_1');

This package is looking for a backer.

Help Symfony by sponsoring its development!

Resources

Projets similaires

Provides a development tool that gives detailed information about the execution of any request

Twigcomponentdevphp
Ssymfony
2,3 k étoiles60

Symfony Stopwatch plugin for HTTPlug

PHP
Pphp-http
267 étoiles5

Utility class for timing

PHP
Ssebastianbergmann
7,7 k étoiles63