Replace TIMER with PROFILE2

`TIMER` messages where printed to stdout which lead to noise.

Refs: #1003
This commit is contained in:
phosit
2025-07-13 14:21:48 +02:00
parent aed1570040
commit f721f56ad4
16 changed files with 45 additions and 58 deletions
+2 -1
View File
@@ -40,6 +40,7 @@
#include "ps/Filesystem.h"
#include "ps/Game.h"
#include "ps/Mod.h"
#include "ps/Profiler2.h"
#include "ps/Pyrogenesis.h"
#include "scriptinterface/JSON.h"
#include "scriptinterface/Object.h"
@@ -275,7 +276,7 @@ std::optional<SavedGames::LoadResult> SavedGames::Load(const ScriptInterface& sc
JS::Value SavedGames::GetSavedGames(const ScriptInterface& scriptInterface)
{
TIMER(L"GetSavedGames");
PROFILE2("GetSavedGames");
ScriptRequest rq(scriptInterface);
JS::RootedValue games(rq.cx);