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.