Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Creating Flamegraphs

Matt Glaman edited this page Oct 5, 2015 · 1 revision

The platform-docker tool simplifies the capture of XHProf output and turning them into Flamegraphs. This tool process mimics the details outlined in this blog post: https://platform.sh/2015/07/29/flamegraphs/

Setting up

This will patch Drupal or WordPress to start logging XHProf output into the /hprof. Visiting pages will now start logging stacktrace information.

Unpatch

The unpatch function reverse the patch so that XHProf logging stops.

Create

The create commands takes all of the XHProf items in the /xhprof folder and creates a flamegraph. Currently there is not a way to specify a filename prefix. You'll have to purge or move the files to generate a specific set.

For an example see https://glamanate.com/blog/drupal-commerce-flamegraphs-and-performance.

Clone this wiki locally