NWNX:EE  8193.37.14
nwnx_profiler.nss
Go to the documentation of this file.
1 
7 const string NWNX_Profiler = "NWNX_Profiler";
8 
31 void NWNX_Profiler_PushPerfScope(string name, string tag0_tag = "", string tag0_value = "");
32 
36 
38 
39 void NWNX_Profiler_PushPerfScope(string name, string tag0_tag = "", string tag0_value = "")
40 {
41  if (tag0_value != "" && tag0_tag != "")
42  {
43  NWNXPushString(tag0_value);
44  NWNXPushString(tag0_tag);
45  }
46  NWNXPushString(name);
47  NWNXCall(NWNX_Profiler, "PushPerfScope");
48 }
49 
51 {
52  NWNXCall(NWNX_Profiler, "PopPerfScope");
53 }
54 
void NWNX_Profiler_PopPerfScope()
Pops a timing metric.
void NWNX_Profiler_PushPerfScope(string name, string tag0_tag="", string tag0_value="")
Push a timing metric scope - note that every push must be matched by a corresponding pop.