# Performance Test Start
Grammar — Performance Test Start inTestName
Flags —Native
|Action
|Restricted
# Arguments
text
— Test Name
Returns — void
native void PerfTestStart(text name);
# 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
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17696
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorAdjutant));
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorRaynor));
PerfTestStart(StringExternal("Param/Value/C52B9B2D"));
}
else if (auto4777B56B_val == 21) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17707
libNtve_gf_ShowHideUnit(gf_ActorUnit(gv_actors[ge_ActorID_ActorStetmann].lv_actorID), true);
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorStetmann));
PerfTestStart(StringExternal("Param/Value/657DE8C0"));
}
else if (auto4777B56B_val == 22) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17713
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorRaynor));
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorSwann));
PerfTestStart(StringExternal("Param/Value/BF15A5E2"));
}
else if (auto4777B56B_val == 23) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17724
libNtve_gf_ShowHideUnit(gf_ActorUnit(gv_actors[ge_ActorID_ActorTychus].lv_actorID), true);
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorTychus));
PerfTestStart(StringExternal("Param/Value/60DB1198"));
}
else if (auto4777B56B_val == 24) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17734
libNtve_gf_ShowHideUnit(gf_ActorUnit(gv_actors[ge_ActorID_ActorAdjutantConfederate].lv_actorID), true);
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorAdjutantConfederate));
PerfTestStart(StringExternal("Param/Value/F2D8EFC3"));
}
else if (auto4777B56B_val == 25) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17743
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorTychus));
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorWarfield));
PerfTestStart(StringExternal("Param/Value/883DC614"));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17892
CinematicFade(true, 0.0, c_fadeStyleNormal, Color(0.00, 0.00, 0.00), 0.0, false);
TriggerEnable(gt_DebugScenePerformanceTestGetFPS, true);
PerfTestStart(gv_debugSceneLabels[lv_index]);
TriggerExecute(gv_debugSceneCallbacks[lv_index], true, true);
PerfTestStop();
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:17696
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorAdjutant));
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorRaynor));
PerfTestStart(StringExternal("Param/Value/C52B9B2D"));
}
else if (auto4777B56B_val == 21) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:17707
libNtve_gf_ShowHideUnit(gf_ActorUnit(gv_actors[ge_ActorID_ActorStetmann].lv_actorID), true);
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorStetmann));
PerfTestStart(StringExternal("Param/Value/657DE8C0"));
}
else if (auto4777B56B_val == 22) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:17713
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorRaynor));
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorSwann));
PerfTestStart(StringExternal("Param/Value/BF15A5E2"));
}
else if (auto4777B56B_val == 23) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:17724
libNtve_gf_ShowHideUnit(gf_ActorUnit(gv_actors[ge_ActorID_ActorTychus].lv_actorID), true);
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorTychus));
PerfTestStart(StringExternal("Param/Value/60DB1198"));
}
else if (auto4777B56B_val == 24) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:17734
libNtve_gf_ShowHideUnit(gf_ActorUnit(gv_actors[ge_ActorID_ActorAdjutantConfederate].lv_actorID), true);
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorAdjutantConfederate));
PerfTestStart(StringExternal("Param/Value/F2D8EFC3"));
}
else if (auto4777B56B_val == 25) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:17743
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorTychus));
gf_PreloadUnitStoryMap(gf_ActorUnit(ge_ActorID_ActorWarfield));
PerfTestStart(StringExternal("Param/Value/883DC614"));
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:17892
CinematicFade(true, 0.0, c_fadeStyleNormal, Color(0.00, 0.00, 0.00), 0.0, false);
TriggerEnable(gt_DebugScenePerformanceTestGetFPS, true);
PerfTestStart(gv_debugSceneLabels[lv_index]);
TriggerExecute(gv_debugSceneCallbacks[lv_index], true, true);
PerfTestStop();
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:12750
Wait(0.0625, c_timeGame);
PerfTestStart((StringExternal("Param/Value/lib_Camp_B157F6F4") + libCamp_gf_MissionNameInUpperCase(libCamp_gv_debug_MapIDForPerfTest)));
TriggerExecute(libCamp_gt_DebugPerfTestGetFps, true, false);
return true;
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:14426
TriggerExecute(libCamp_gt_DebugPerfTestGetFps, true, false);
PerfTestStart(StringToText(EventChatMessage(false)));
return true;
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:2215
// Implementation
TriggerExecute(lib281DEC45_gt_ZSS_DebugPerfTestFPSPoll, true, false);
PerfTestStart(lp_sceneName);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:112
// Implementation
UnitStatsStart(StringToText(lp_name), StringExternal("Param/Value/lib_Sprt_4E3C325E"), StringExternal("Param/Value/lib_Sprt_22E09DDC"));
PerfTestStart(StringToText(lp_name));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:12297
// Implementation
if ((libCOMI_gv_cM_CampaignMissionPerfTest == true)) {
PerfTestStart(StringExternal("Param/Value/lib_COMI_8A49EC89"));
TriggerExecute(libCOMI_gt_CM_CampaignMissionPerfLog, true, false);
}
mods/testmods/autopve.stormmod — base.stormdata/Lib1035AFB3.galaxy:144
lv_testrun = 1;
for ( ; ( (auto56D0D90C_ai >= 0 && lv_testrun <= auto56D0D90C_ae) || (auto56D0D90C_ai < 0 && lv_testrun >= auto56D0D90C_ae) ) ; lv_testrun += auto56D0D90C_ai ) {
PerfTestStart(StringExternal("Param/Value/lib_1035AFB3_27A71186"));
TriggerEnable(lib1035AFB3_gt_GetFPS, true);
TriggerExecute(lib1035AFB3_gt_BossFight, true, true);
mods/testmods/autopve.stormmod — base.stormdata/Lib1035AFB3.galaxy:187
lv_testrun = 1;
for ( ; ( (autoB56DA8A3_ai >= 0 && lv_testrun <= autoB56DA8A3_ae) || (autoB56DA8A3_ai < 0 && lv_testrun >= autoB56DA8A3_ae) ) ; lv_testrun += autoB56DA8A3_ai ) {
PerfTestStart(StringExternal("Param/Value/lib_1035AFB3_FB214B9A"));
TriggerEnable(lib1035AFB3_gt_GetFPS, true);
TriggerExecute(lib1035AFB3_gt__2ndWaveFight, true, true);