score.perf

This module will help you identify bottle-necks in your applications. It operates by capturing a snapshot of the current stack and rendering it to an interactive SVG file using the external flamegraph binary. This clever method was found in Eben Freeman’s post on Nylas’ blog.

Quickstart

Add this module to your modules list and it will generate an SVG file in the current folder, which you can inspect in a modern browser. That’s it.

API

Configuration

score.perf.init(confdict)[source]

Initializes this module according to our module initialization guidelines with the following configuration keys:

sample_interval 100ms
Time duration to wait between measurements.
output_interval 5s
Interval in which to update resulting graph.
output.folder .
Folder to write results to. Will create a file with this process’s start time and PID as file name.
output.file
This may be provided instead of output.folder, in which case the output will be written to this specific file.