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