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

ActiveLibrary

opxcore/profiler
================

The OpxCore profiler.

1.1.0(5y ago)18MITPHPPHP ^7.4

Since Feb 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/opxcore/profiler)[ Packagist](https://packagist.org/packages/opxcore/profiler)[ Docs](https://opxcore.com)[ RSS](/packages/opxcore-profiler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Profiler
========

[](#profiler)

[![Build Status](https://camo.githubusercontent.com/cd8b9c936c1fcf9e69c1eb9e298ad442c0835ac4a1d0f9ec10d1d927afc2ad09/68747470733a2f2f7777772e7472617669732d63692e636f6d2f6f7078636f72652f70726f66696c65722e7376673f6272616e63683d6d61696e)](https://www.travis-ci.com/opxcore/profiler)[![Coverage Status](https://camo.githubusercontent.com/0d0692e3edae4ae0ec341319d23b9102d99c922e8e7ad8149e54b68da27c4d2d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f7078636f72652f70726f66696c65722f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/opxcore/profiler?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/b7c98261508fe23b3e6d5cd15d6afd54417ba0bc1b983ede53edded1cc57de7a/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f70726f66696c65722f762f737461626c65)](https://packagist.org/packages/opxcore/profiler)[![Total Downloads](https://camo.githubusercontent.com/1d3cd0e4cf90c221e0c01005abb44d8256d592177c7c1e9e262065b233205930/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f70726f66696c65722f646f776e6c6f616473)](https://packagist.org/packages/opxcore/profiler)[![License](https://camo.githubusercontent.com/2b5ff6eb85879e2f7b9cfa92c3336d35a23c2cd91c15aedffb8ca5afd74da77f/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f70726f66696c65722f6c6963656e7365)](https://packagist.org/packages/opxcore/profiler)

Creating
--------

[](#creating)

Just create new profiler class instance, and it is ready to use. You can pass externally captured profiling start time and memory usage. Otherwise, it will be automatically captured at profiler creation time.

Example:

```
use OpxCore\Profiler\Profiler;

$startTime = hrtime(true);
$startMemory = memory_get_usage();

$profiler = new Profiler($startTime, $startMemory);
```

To disable profiling you should call `$profiler->enable(false)` or `$profiler->enable()` to enable it again. By default, profiling is enabled.

Profiling
---------

[](#profiling)

There are two methods: `start($action)` and `stop($action)`. `$action` is a name for profiling entry. `start` captures current time and memory usage (or externally captured can be used same as in a constructor). `stop` also captures time and memory usage (or use externally captured) and writes profiling entry.

Results
-------

[](#results)

`$profiler->profiling()` returns full array with entries (or null if profiling is disabled) sorted by time when action was fired.

Each entry is an array having next keys:

- `action_name` - Name of action you passed into `start()` and `stop()` function;
- `started_at` - Time when `start()` was fired related to start time passed to constructor (or captured there), or time of `stop()` was fired if there was no start fired for this action;
- `execution_time` - Time between start and stop, or null if there was no start;
- `used_memory` - Memory difference between start and stop, or null if there was no start;
- `total_memory` - Total memory usage at the action stop;
- `trace` - Stack trace of function calls, calling of profiler methods excluded (or externally captured and passed to `stop()` function as fourth argument).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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 ~0 days

Total

4

Last Release

1921d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46634185?v=4)[opxcore](/maintainers/opxcore)[@opxcore](https://github.com/opxcore)

---

Top Contributors

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

---

Tags

profilerapplicationopxcore

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k124.3M624](/packages/barryvdh-laravel-debugbar)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k21.3M40](/packages/php-debugbar-php-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-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.8k24.4M1.3k](/packages/tracy-tracy)[fruitcake/laravel-telescope-toolbar

Toolbar for Laravel Telescope based on Symfony Web Profiler

8041.6M3](/packages/fruitcake-laravel-telescope-toolbar)[blackfire/php-sdk

Blackfire.io PHP SDK

15912.6M28](/packages/blackfire-php-sdk)

PHPackages © 2026

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