PHPackages                             titledk/silverstripe-xhprof - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. titledk/silverstripe-xhprof

ActiveSilverstripe-module

titledk/silverstripe-xhprof
===========================

A Silverstripe module for facilitating profiling with XHProf

12673PHP

Since Oct 27Pushed 10y ago4 watchersCompare

[ Source](https://github.com/titledk/silverstripe-xhprof)[ Packagist](https://packagist.org/packages/titledk/silverstripe-xhprof)[ RSS](/packages/titledk-silverstripe-xhprof/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

XHProf module for Silverstripe
==============================

[](#xhprof-module-for-silverstripe)

A Silverstripe module for facilitating profiling with *XHProf*.

Since the Silverstripe 3 release, Silverstripe's built-in profiling has been disabled (see [this thread](https://github.com/silverstripe/sapphire/pull/618)). Thus, this module has sprung out of neccesity for profiling in *Silverstripe 3*.

This is a fork from the [XHProf](https://github.com/facebook/xhprof) PHP compiler, open sourced by *Facebook* in 2009. It has been amended for easy integration with Silverstripe as well as installation instructions in this readme.

Requirements
------------

[](#requirements)

- \*nix environment (probably works on OSX as well)
- Silverstripe 3+
    *Would also work on older Silverstripe versions, but installation instructions need to be amended*

Installation
------------

[](#installation)

*XHProf* needs to be installed and running on your system for this module to work. Once *XHPprof* has been installed, follow the following steps:

- Download this module, and place it in your Silverstripe root, calling it `xhprof`
- Edit `/framework/main.php`, adding the following lines at the very top (under `
