Skip to content

Instantly share code, notes, and snippets.

@janpapenbrock
Created January 7, 2016 13:38
Show Gist options
  • Save janpapenbrock/8be4b7b510c240da3b10 to your computer and use it in GitHub Desktop.
Save janpapenbrock/8be4b7b510c240da3b10 to your computer and use it in GitHub Desktop.
Xhprof to flamegraph
#!/bin/bash
INSTALL_DIR="~/third-party/"
mkdir -p "$INSTALL_DIR"
cd "$INSTALL_DIR"
git clone https://github.com/brendangregg/FlameGraph
sudo ln -s "$INSTALL_DIR"/FlameGraph/flamegraph.pl /usr/local/bin/flamegraph.pl
git clone https://github.com/msonnabaum/xhprof-flamegraphs.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment