Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Xhprof Laravel Package

epwt/xhprof

View on GitHub
Deep Wiki
Context7

EPWTXhprofBundle

Latest Stable Version Latest Unstable Version Total Downloads Analytics

EPWTXhprofBundle provides XHProf integration to Symfony profiler and wrapper for XHProf simple usage anywhere in project.

Toolbar

Samples List Sample Runs Sample Run Full Sample Run

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

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:

xhprofStart('Name of sample');

To end profiling use:

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:

Resources/meta/LICENSE

About

EPWTXhprofBundle is brought to you by Aurimas Niekis.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
marcelgwerder/laravel-api-handler
firebrikdotcom/conveyor-laravel-broadcaster
kanata-php/conveyor-laravel-broadcaster
alish/short-message
sonrac/lumen-league-oauth2
pushery/sanctum-hardening-for-laravel
evanschleret/laravel-uuidable
yigit-serin/laravel-openvidu
adachsoft/command-executor-lib
tagixo/document-builder
tagixo/page-builder
tagixo/mail-builder
tagixo/form-builder
primix/primix
tagixo/core
alesima/laravel-azure-service-bus
tomshaw/shopcart
likyly/laravel
darthsoup/shoppingcart
tdt/core