netpromotion/tracy-wrapper

v1.1.0 2016-10-10 09:56 UTC

README

Helper which helps you with Tracy injection into your project.

Lumen + Tracy

Usage

<?php // index.php

$panels = [new BarPanelA(), new BarPanelB()];
// or
$panels = function () { // will be called only if Tracy detects development mode
    return [new BarPanelA(), new BarPanelB()];
};

tracy_wrap(function() {
    app()->run();
}, $panels /* optional */);

How to install

Run composer require netpromotion/tracy-wrapper in your project directory.