kr4y/profiler

Profiler for Laravel 4

1.0.2 2013-05-24 14:32 UTC

This package is not auto-updated.

Last update: 2024-03-11 08:45:12 UTC


README

Profiler for Laravel 4

Installation

In composer.json file:

{
    "require-dev": {
        "kr4y/profiler": "dev-master"
    },
}

In app/config/app.php:

'providers' => array(
  ...

    'Kr4Y\Profiler\ProfilerServiceProvider',
    ...
),

'aliases' => array(
  ...
        'Profiler'        => 'Kr4Y\Profiler\Facades\Profiler',
        ...

If you need to disable profiler (disabled in production environment by default), publish package config php artisan config:publish kr4y/profiler and set 'enabled' => false

Profiler snapshot points usage:

Profiler::startPoint('sample snapshot point');

.....

Profiler::endPoint('sample snapshot point');