# symfony/stopwatch

Provides a way to profile code

Repository: https://github.com/symfony/stopwatch
Canonical: https://ross.abutalabs.com/products/stopwatch
Homepage: https://symfony.com/stopwatch
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component
Last push: 2026-08-14T13:38:00+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 74, longevity 100
- inputs: {"age_days": 5044, "days_push": 19, "days_rel": 96, "gap_med": 32, "n_releases_24m": 14}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2811, forks 14 (observed 2026-08-28T04:07:23.679524+00:00)

## What it is
A Symfony component that provides a simple stopwatch API for profiling PHP code by timing named events, laps, and sections. It is a lightweight, standalone library installable via Composer and widely used across the PHP ecosystem.

## Use cases
- profile how long a block of PHP code takes to run
- measure execution time of named events with lap times
- group timing events into sections for phases of execution
- instrument application code to find performance bottlenecks
- collect timing data in Symfony applications

## When to avoid
- you need a full profiler with call graphs, memory profiling, or flame graphs (use Blackfire or Xdebug)
- you are not working in PHP

## Facets
- artifact type: library
- maturity: stable
- function: monitoring, benchmarking, developer-tools
- domain: developer-tools, performance
- platform: php
- tags: profiling, stopwatch, symfony-component, timing, code-instrumentation

## Member repositories
- symfony/stopwatch (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:23.679524+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:13:32.895852+00:00, confidence not recorded.
  - readme: https://github.com/symfony/stopwatch (fetched 2026-08-28T04:07:23.679524+00:00, sha af25b4ef3896)
  - homepage: https://symfony.com/stopwatch (fetched 2026-08-29T09:54:09.859835+00:00, sha f404d916e4d6)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T09:54:09.868766+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/doc/current/performance.html (fetched 2026-08-29T09:54:09.870777+00:00, sha 15262af7aeb6)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T09:54:09.872813+00:00, sha 2fd410222cfe)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T09:54:09.874715+00:00, sha 83b70dd163fb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
