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");
     }
 }
 public void Dispose()
 {
     // Verify the profiler env variable is specified. This prevents our unit tests from failing.
     if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("NWNX_PROFILER_SKIP")))
     {
         NWNXProfiler.PopPerfScope();
     }
 }
Beispiel #3
0
 public Profiler(string name)
 {
     NWNXProfiler.PushPerfScope(name, "RunScript", "Script");
 }
Beispiel #4
0
 public void Dispose()
 {
     NWNXProfiler.PopPerfScope();
 }