2017 © Pedro Peláez
 

symfony-bundle xhprof

EPWT XHProf Symfony Profiler Integration

image

epwt/xhprof

EPWT XHProf Symfony Profiler Integration

  • Wednesday, April 22, 2015
  • by gcds
  • Repository
  • 2 Watchers
  • 8 Stars
  • 165 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

EPWTXhprofBundle

Latest Stable Version Latest Unstable Version Total Downloads Analytics, (*1)

EPWTXhprofBundle provides XHProf integration to Symfony profiler and wrapper for XHProf simple usage anywhere in project., (*2)

Toolbar, (*3)

Samples List Sample Runs Sample Run Full Sample Run, (*4)

Requirements

  • Symfony >= 2.3
  • PHP >= 5.4
  • Facebook XHProf Extension

Install via Composer

composer require --dev epwt/xhprof "~1.0"

Setting up

Register EPWTXhprofBundle in AppKernel.php file. I suggest to use it only in development or testing environment, (*5)

AppKernel.php

public function registerBundles()
{
    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
        $bundles[] = new EPWT\XhprofBundle\EPWTXhprofBundle();
    }
}

Usage

To use XHProf anywhere in project just initiate profiling by using global function:, (*6)

xhprofStart('Name of sample');

To end profiling use:, (*7)

xhprofEnd();

Sample Usage

for($a = 0; $a < 20; $a++) {
    xhprofStart('Hello world');
    for ($i = 0; $i < 20; $i ++) {
        sleep(0.1);
    }
    xhprofEnd();
}

License

This bundle is under the MIT license. See the complete license in the bundle:, (*8)

Resources/meta/LICENSE

About

EPWTXhprofBundle is brought to you by Aurimas Niekis., (*9)

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker., (*10)

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps., (*11)

The Versions

22/04 2015

dev-master

9999999-dev http://github.com/gcds/epwt-xhprof

EPWT XHProf Symfony Profiler Integration

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

bundle symfony profiler xhprof epwt

20/04 2015

v1.0.0

1.0.0.0 http://github.com/gcds/epwt-xhprof

EPWT XHProf Symfony Profiler Integration

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

bundle symfony profiler xhprof epwt