Allow profiler max depth to be configurable.
Merge pull request #560 from tim-schilling/profiler-max-depth-settings-515

Allow profiler max depth to be configurable.