Add profiler warmup overhead tracking and tooltip display

This commit is contained in:
max
2026-08-05 14:04:21 +02:00
parent d9582aecdd
commit 6ad5aa3f2c
3 changed files with 27 additions and 2 deletions
+5
View File
@@ -372,6 +372,11 @@ public static class ProfilerVisualizer
ImGui.Text($"Timeline Start: {hover.StartInTimelineMs:0.000} ms");
ImGui.Text($"Timeline End: {hover.EndInTimelineMs:0.000} ms");
ImGui.Text($"Children: {hover.Node.Children.Count}");
if (hover.Node.ProfilerSetupBytes > 0)
{
ImGui.Separator();
ImGui.TextColored(new Vector4(1f, 0.75f, 0f, 1f), $"\u26a0 {hover.Node.ProfilerSetupBytes} B of alloc is profiler warmup overhead");
}
ImGui.EndTooltip();
}