Add red color to Tracy profiler zones that cause CPU waiting to improve profiling

This commit is contained in:
Wojtek Figat
2025-06-11 14:56:43 +02:00
parent d6eb647d59
commit e9835766bc
10 changed files with 24 additions and 3 deletions

View File

@@ -494,6 +494,9 @@ bool Asset::WaitForLoaded(double timeoutInMilliseconds) const
}
PROFILE_CPU();
ZoneColor(TracyWaitZoneColor);
const StringView path(GetPath());
ZoneText(*path, path.Length());
Content::WaitForTask(loadingTask, timeoutInMilliseconds);

View File

@@ -1128,6 +1128,8 @@ void Content::WaitForTask(ContentLoadTask* loadingTask, double timeoutInMillisec
localQueue.Clear();
}
PROFILE_CPU_NAMED("Inline");
ZoneColor(0xffaaaaaa);
thread->Run(tmp);
}
else