Statistics that help you improve application performance.
Telltale analyses current execution and provides information about potential bottlenecks in your application. Analyzes are executed by agents. Output reports are automatically sent to console of your browser. Default agents:
- MemoryPeakAgent: top memory usage;
- CriticalPathAgent: shows the most time-consuming path;
- SlowestCallsCallsAgent: shows slowest calls;
- MemoryUsageCallsAgent: shows top memory usage calls.
![](https://raw.github.com/renanbr/telltale/master/docs/images/screenshot/overview.png)
<?php
use Telltale\Telltale;
use Telltale\Agent\MemoryPeakAgent;
use Telltale\Agent\CriticalPathAgent;
use Telltale\Agent\SlowestCallsAgent;
use Telltale\Agent\MemoryUsageCallsAgent;
// create an analyser
$telltale = new Telltale();
$telltale->pushAgent(new MemoryPeakAgent());
$telltale->pushAgent(new CriticalPathAgent());
$telltale->pushAgent(new SlowestCallsAgent());
$telltale->pushAgent(new MemoryUsageCallsAgent());
// start watching
$telltale->start();
Analysing a part of code:
<?php
// ignored
$telltale->start();
// analysed
$telltale->stop();
// ignored
Installation of this module uses Composer.
php composer.phar require renanbr/telltale:dev-master
or add renanbr/telltale
to composer.json
manually
{
"require": {
"renanbr/telltale": "dev-master"
}
}
Bugs and feature requests are tracked on GitHub.
Renan de Lima - [email protected]
Telltale is licensed under the MIT License. See the LICENSE file for details.
This library is inspired by Derick Rethans' tracefile analyser script and ZendServer Code Tracing.