# Unit Stats Start
Flags —
Native
|Action
|Restricted
Starts Unit Stats performance logging.
# Arguments
text
— test Nametext
— unit Nametext
— unit Food
Returns — void
native void UnitStatsStart(
text name,
text unitName,
text unitFood,
);
# Related
Category: Debug / Performance Testing
- Wait For Profiler Logging To End —
void
— WaitForProfilerLoggingToEnd - Profile Run Start —
void
— StartProfileRun - Profile Run Stop —
void
— StopProfileRun - Performance Test Start —
void
— PerfTestStart - Performance Test Stop —
void
— PerfTestStop - Performance Test Get FPS —
void
— PerfTestGetFPS - Unit Stats Start —
void
— UnitStatsStart - Unit Stats Stop —
void
— UnitStatsStop
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:111
// Automatic Variable Declarations
// Implementation
UnitStatsStart(StringToText(lp_name), StringExternal("Param/Value/lib_Sprt_4E3C325E"), StringExternal("Param/Value/lib_Sprt_22E09DDC"));
PerfTestStart(StringToText(lp_name));
}