static ProfilerFactory() { getProfiler = NewNoProfiler; options = new ProfilingOptions { Target = "None", Threshold = 10 }; }
public static void UseSettings(ProfilingOptions profilingOptions) { options = profilingOptions; getProfiler = options.Target switch { "DebugConsole" => (Func <IProfiler>)NewDebugConsoleProfiler, "File" => NewFileProfiler, _ => NewNoProfiler }; }