Registry / observability / symfony-stopwatch

symfony-stopwatch

JSON →
library8.1.0phppackagistunverified

Provides a way to profile code by measuring execution time and memory usage.

composer require symfony/stopwatch
INSTALL
IMPORT
SIG · SYMFONY-STOPWATCH
S
symfony-stopwatch
observabilityphpv8.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Stopwatch
use Symfony\Component\Stopwatch\Stopwatch;

Profile a section of code using the Stopwatch component.

use Symfony\Component\Stopwatch\Stopwatch; $stopwatch = new Stopwatch(); $stopwatch->start('event1'); // ... code to profile $event = $stopwatch->stop('event1'); echo $event->getDuration();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
8.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
symfony-stopwatch — pip install symfony-stopwatch · libregistry