PHPackages                             tomzx/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. tomzx/profiler

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

tomzx/profiler
==============

PHP profiler.

v0.1.0(9y ago)1241[1 issues](https://github.com/tomzx/profiler/issues)MITPHPPHP &gt;=7.0

Since Oct 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/tomzx/profiler)[ Packagist](https://packagist.org/packages/tomzx/profiler)[ Docs](https://github.com/tomzx/profiler)[ RSS](/packages/tomzx-profiler/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

PHP Profiler
============

[](#php-profiler)

[![License](https://camo.githubusercontent.com/5db30d3e039414e1d657061b98e2f9bd4082a7be71e552216d0b7ea6b1760e1c/68747470733a2f2f706f7365722e707567782e6f72672f746f6d7a782f70726f66696c65722f6c6963656e73652e737667)](https://packagist.org/packages/tomzx/profiler)[![Latest Stable Version](https://camo.githubusercontent.com/4f14ce054333e48b4d5548ad41c71b001e2cc9790fd32b024dbb8873e1876d83/68747470733a2f2f706f7365722e707567782e6f72672f746f6d7a782f70726f66696c65722f762f737461626c652e737667)](https://packagist.org/packages/tomzx/profiler)[![Latest Unstable Version](https://camo.githubusercontent.com/23c8bb6d626caab8e8415cd2fd208d4e54ce562629e3a5504dfeab900d13db25/68747470733a2f2f706f7365722e707567782e6f72672f746f6d7a782f70726f66696c65722f762f756e737461626c652e737667)](https://packagist.org/packages/tomzx/profiler)[![Build Status](https://camo.githubusercontent.com/98ec8f4c30745c9bfac45cbb204317dc2553d8c55cd85f745dcb6317a064bf50/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f746f6d7a782f70726f66696c65722e737667)](https://travis-ci.org/tomzx/profiler)[![Code Quality](https://camo.githubusercontent.com/4706d81fa2d33b1f56ceef8111bc7ad7a19cd0b446f4a8e0c595fa6d58c4f581/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f746f6d7a782f70726f66696c65722e737667)](https://scrutinizer-ci.com/g/tomzx/profiler/code-structure)[![Code Coverage](https://camo.githubusercontent.com/f82b9d0dff914a4b235467986b2b1c7bb071b3a6667819d6f75f4fcdc5fc3539/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f746f6d7a782f70726f66696c65722e737667)](https://scrutinizer-ci.com/g/tomzx/profiler)[![Total Downloads](https://camo.githubusercontent.com/35c1e172e6e5418bc1d82c14f1f7cf0fcd497c11591e416dc95f21245591afb9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f6d7a782f70726f66696c65722e737667)](https://packagist.org/packages/tomzx/profiler)

`PHP Profiler` is a small library that provides profiling functionality. It uses the [Chrome debugging protocol](https://chromedevtools.github.io/debugger-protocol-viewer/v8/Profiler/) that is part of the Chrome DevTools. This means that you can generate `.cpuprofile`-compatible files that can then be loaded into Chrome profiles in the developer tools.

Getting started
---------------

[](#getting-started)

- In a console, `php composer.phar require tomzx/profiler`

```
$profiler = new \tomzx\Profiler\StackBasedProfiler();
$profiler->start();

// In your code
$profiler->push('My identifier');
///...
$profiler->pop();

$profile = $profiler->stop();
file_put_contents('test.cpuprofile', json_encode($profile));
```

License
-------

[](#license)

The code is licensed under the [MIT license](http://choosealicense.com/licenses/mit/). See [LICENSE](LICENSE).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3535d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/218f6db237e6937c05550d4d6df648f50cd9b26b098fc8c1be3930fe7d5c71e9?d=identicon)[tomzx](/maintainers/tomzx)

---

Top Contributors

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

---

Tags

profiler

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.3k133.0M724](/packages/barryvdh-laravel-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.3k2.3M57](/packages/fruitcake-laravel-debugbar)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k29.8M64](/packages/php-debugbar-php-debugbar)[tracy/tracy

😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.

1.8k25.1M1.4k](/packages/tracy-tracy)[fruitcake/laravel-telescope-toolbar

Toolbar for Laravel Telescope based on Symfony Web Profiler

8071.7M5](/packages/fruitcake-laravel-telescope-toolbar)[vpietri/adm-quickdevbar

QuickDevBar is a developer toolbar for magento 2

577360.4k](/packages/vpietri-adm-quickdevbar)

PHPackages © 2026

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