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

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

barcodex/kasha-profiler
=======================

PHP app profiler

07PHP

Since Jun 1Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

kasha-profiler
==============

[](#kasha-profiler)

This library is meant to provide profiling functionality for the applications built on top of the Kasha framework. However, it does not require any of Kasha libraries or modules to work, so anyone who likes the simplicity of kasha-profiler, is welcome to use it.

The library provides only the most essential parts of profiling functionality - measuring the operations time. Usage of its main class, Profiler, can be described in the shortest way by this simple list:

- start a new timer whenever you have an operation you want to measure
- stop the timer by its ID (or stop all the timers of given type)
- get the statistics of measured operations and optionally, use some reporter class to process this stats

Here is a dead-simple example of using the Kasha Profiler:

```
