eventhorizon/profiler-bundle

EventHorizonProfilerBundle

This package's canonical repository appears to be gone and the package has been frozen as a result.

v1.0.3 2015-03-10 19:21 UTC

This package is not auto-updated.

Last update: 2019-06-08 03:21:44 UTC


README

This bundle is designed to improve profiling.

Installation

Add EventHorizonProfilerBundle in your composer.json:

{
    "require": {
        // ...
        "eventhorizon/profiler-bundle": "dev-master"
    }
}

Now tell composer to download the bundle by running the command:

$ php composer.phar update eventhorizon/profiler-bundle

Configuration

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
        // ...
        $bundles[] = new EventHorizon\ProfilerBundle\EventHorizonProfilerBundle();
    }
}
# app/config/config_dev.yml

services:
    data_collector.profiler:
        class: EventHorizon\ProfilerBundle\DataCollector\ProfilerCollector
        tags:
            - { name: data_collector, template: "EventHorizonProfilerBundle:Collector:profiler", id: "profiler" }