tmm1/stackprof — pull request #21 by camilo (2014-03-03 02:54:35+00:00)
Title: Allow for mode to be set via a proc too

## Problem

When profiling a live app, it is very convenient to not only turn the profiler on and off but to be able to change the profiling mode according to some environment configuration.

## Solution

Allow for a proc to return the mode value, being careful to not change the mode until a call to save has been made.