public Profiler(string name)
 {
     // Verify the profiler env variable is specified. This prevents our unit tests from failing.
     if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("NWNX_PROFILER_SKIP")))
     {
         NWNXProfiler.PushPerfScope(name, "MonoScript", "Script");
     }
 }
Beispiel #2
0
 public Profiler(string name)
 {
     NWNXProfiler.PushPerfScope(name, "RunScript", "Script");
 }