PHPackages                             bakame/aide-profiler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. bakame/aide-profiler

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

bakame/aide-profiler
====================

A minimalist, embeddable, multi-metric, and framework-agnostic profiler for PHP

0.16.1(3mo ago)929[1 issues](https://github.com/bakame-php/stackwatch/issues)MITPHPPHP ^8.1CI passing

Since Jun 26Pushed 2mo agoCompare

[ Source](https://github.com/bakame-php/stackwatch)[ Packagist](https://packagist.org/packages/bakame/aide-profiler)[ GitHub Sponsors](https://github.com/sponsors/nyamsprod)[ RSS](/packages/bakame-aide-profiler/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (19)Used By (0)

[![Stackwatch](docs/assets/img/stackwatch-logo.png?raw=true)](docs/assets/img/stackwatch-logo.png?raw=true)

Stackwatch
==========

[](#stackwatch)

[![Author](https://camo.githubusercontent.com/8227017ba73e8c0c93fa2c9c653cf702644a5af5d422e7f612b31d45efc180a1/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406e79616d7370726f642d626c75652e7376673f7374796c653d666c61742d737175617265)](https://phpc.social/@nyamsprodd)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://github.com/bakame-php/stackwatch/workflows/build/badge.svg)](https://github.com/bakame-php/stackwatch/actions?query=workflow%3A%22build%22)[![Latest Version](https://camo.githubusercontent.com/b1905543d919ed33c95871b1386df7ae4d96f6462c7a67f13b8e733bc1bacad6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f62616b616d652d7068702f737461636b77617463682e7376673f7374796c653d666c61742d737175617265)](https://github.com/bakame-php/stackwatch/releases)[![Total Downloads](https://camo.githubusercontent.com/b352e0a652417d0844348bd5aac2f08546518b0cf62a3e120fe9a3e50ba806ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62616b616d652f737461636b77617463682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bakame/stackwatch)[![Sponsor development of this project](https://camo.githubusercontent.com/2e662697b46a37233abdd7e45373397aab0bd5206336533151cdf42455d81048/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73706f6e736f72253230746869732532307061636b6167652d2545322539442541342d6666363962342e7376673f7374796c653d666c61742d737175617265)](https://github.com/sponsors/nyamsprod)

**Stackwatch** is a lightweight profiler for PHP 8.1+. It helps you measure performance with precision—without unnecessary complexity.

**Stackwatch** bridges the gap between basic timers and heavy profiling tools like [PHPBench](https://phpbench.readthedocs.io/en/latest/), [Xdebug](https://xdebug.org/) or [Blackfire](https://www.blackfire.io/). It is perfect for:

- Isolated performance testing
- Annotated profiling of large codebases
- Lightweight integration into dev workflows

> Zero-dependency core. Optional CLI with familiar Symfony Console integration.

Installation
------------

[](#installation)

```
composer require bakame/stackwatch

```

You need:

- **PHP &gt;= 8.1** but the latest stable version of PHP is recommended
- the `psr/log` package or any package implementing the PHP-FIG log contract

To use the CLI command you will also need:

- `symfony/console` and `symfony/process`

Documentation
-------------

[](#documentation)

Full documentation can be found at

Testing
-------

[](#testing)

The library has:

- a [PHPUnit](https://phpunit.de) test suite.
- a coding style compliance test suite using [PHP CS Fixer](https://cs.symfony.com/).
- a code analysis compliance test suite using [PHPStan](https://github.com/phpstan/phpstan).

To run the tests, run the following command from the project folder.

```
composer test
```

Contributing
------------

[](#contributing)

Contributions are welcome and will be fully credited. Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CONDUCT](.github/CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [ignace nyamagana butera](https://github.com/nyamsprod)
- [All Contributors](https://github.com/bakame-php/aide/graphs/contributors)

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance86

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Recently: every ~44 days

Total

18

Last Release

91d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51073?v=4)[Ignace Nyamagana Butera](/maintainers/nyamsprod)[@nyamsprod](https://github.com/nyamsprod)

---

Top Contributors

[![nyamsprod](https://avatars.githubusercontent.com/u/51073?v=4)](https://github.com/nyamsprod "nyamsprod (266 commits)")

---

Tags

cpu-monitoringhrtimememory-usagemetricsmetrics-visualizationmicrotimephpprofilingsnapshotspanstopwatchprofilerCPUstopwatchmemory\_usageembeddablemicrotimehrtimemulti-metric

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bakame-aide-profiler/health.svg)

```
[![Health](https://phpackages.com/badges/bakame-aide-profiler/health.svg)](https://phpackages.com/packages/bakame-aide-profiler)
```

###  Alternatives

[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k21.3M39](/packages/php-debugbar-php-debugbar)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.4k37.3k](/packages/matomo-matomo)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M340](/packages/drupal-core-recommended)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
