Add profiler warmup overhead tracking and tooltip display
This commit is contained in:
@@ -194,7 +194,16 @@ namespace Nerfed.Editor.Systems
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.Text($"{node.SelfMilliseconds():0.000}");
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.Text($"{node.AllocatedBytes}");
|
||||
if (node.ProfilerSetupBytes > 0)
|
||||
{
|
||||
ImGui.Text($"{node.AllocatedBytes} !");
|
||||
if (ImGui.IsItemHovered())
|
||||
ImGui.SetTooltip($"{node.ProfilerSetupBytes} B is profiler warmup overhead");
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui.Text($"{node.AllocatedBytes}");
|
||||
}
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.Text($"{node.SelfAllocatedBytes()}");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user