tmm1/stackprof — pull request #16 by camilo (2014-02-06 15:52:17+00:00)
Title: Allow the use of a Proc to decide if the middleware is enabled

## Problem

Sometimes in the middleware I'd like a way of dynamically injecting some logic to start/stop profiling, using some state (the precense of a file, a flag that can be changed with a signal, etc)

## Solution

Make ```Middleware.enabled?``` call a proc if passed.

@tmm1 ping