You're checking the slowms value so it would make sense to check the level option as well.  The level must be a key in:

PROFILE_LEVEL = {
      :off       => 0,
      :slow_only => 1,
      :all       => 2
    }