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
35
void
NWNX_Profiler_PopPerfScope
();
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
50
void
NWNX_Profiler_PopPerfScope
()
51
{
52
NWNXCall(NWNX_Profiler,
"PopPerfScope"
);
53
}
54
NWNX_Profiler_PopPerfScope
void NWNX_Profiler_PopPerfScope()
Pops a timing metric.
Definition:
nwnx_profiler.nss:50
NWNX_Profiler_PushPerfScope
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.
Definition:
nwnx_profiler.nss:39
Plugins
Profiler
NWScript
nwnx_profiler.nss
Generated on Thu Feb 13 2025 09:52:34 for NWNX:EE by
1.9.1.
Dark version