Allow profiler max depth to be set in settings