mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Display memory limit in notification area.
This commit is contained in:
@@ -997,6 +997,18 @@ bool View::DrawImpl()
|
||||
dx = ImGui::GetCursorPosX() - cx;
|
||||
if( dx < targetLabelSize ) ImGui::SameLine( cx + targetLabelSize );
|
||||
ImGui::Spacing();
|
||||
|
||||
if( m_worker.GetMemoryLimit() > 0 )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
TextColoredUnformatted( 0xFF00FFFF, ICON_FA_TRIANGLE_EXCLAMATION );
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::Text( "Memory limit: %s", MemSizeToString( m_worker.GetMemoryLimit() ) );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
}
|
||||
}
|
||||
DrawNotificationArea();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user