Getting ready

In order to generate a flamegraph, we need Mac OS X (10.8 - 10.10), a recent Linux distribution, or SmartOS.

Windows
If we're using Windows, flamegraph tooling is limited, the best option is to install a virtual machine with Linux. See http://www.storagecraft.com/blog/the-dead-simple-guide-to-installing-a-linux-virtual-machine-on-windows/ for details.

We'll also need to install https://github.com/davidmarkclements/0x, the flamegraph tool that can be installed as a global module:

$ npm install -g 0x