Browse Source

Updated DumpSoakStats call.

Signed-off-by: scspaldi <[email protected]>
scspaldi 3 years ago
parent
commit
6148b105fc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Gem/Code/Source/NetSoakTestSystemComponent.cpp

+ 3 - 0
Gem/Code/Source/NetSoakTestSystemComponent.cpp

@@ -179,6 +179,9 @@ namespace NetSoakTest
         m_totalElapsedMs += elapsedMs;
         if (soak_runtime != AZ::TimeMs(0) && m_totalElapsedMs > soak_runtime)
         {
+            const AZ::CVarFixedString dumpSoakStatsStrings = "DumpSoakStats";
+            const auto console = AZ::Interface<AZ::IConsole>::Get();
+            console->PerformCommand(dumpSoakStatsStrings.c_str());
             DumpSoakStats();
             exit(0);
         }