Skip to content

Statistics that help you improve application performance

License

Notifications You must be signed in to change notification settings

renanbr/telltale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telltale

Build Status Dependency Status

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. Available agents:

  • Memory Peak;
  • Critical Path;
  • Slowest Calls;
  • Memory Usage Calls.

Usage

<?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();

Then your browser displays informations like this...

Firebug Sample

Analysing a code snippet...

<?php
// ignored
$telltale->start();
// analysed
$telltale->stop();
// ignored

Installation

Add renanbr/telltale dependency using Composer.

php composer.phar require renanbr/telltale:~1

Or change composer.json file...

{
    "require": {
        "renanbr/telltale": "~1"
    }
}

For Composer documentation, please refer to getcomposer.org.

Environment Requirements

Acknowledgements

This library is inspired by Derick Rethans' tracefile analyser script and ZendServer Code Tracing.

About

Statistics that help you improve application performance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages