mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Metrics windows display storage size
This commit is contained in:
		@@ -11477,6 +11477,7 @@ void ImGui::ShowMetricsWindow(bool* opened)
 | 
			
		||||
                NodeDrawList(window->DrawList, "DrawList");
 | 
			
		||||
                if (window->RootWindow != window) NodeWindow(window->RootWindow, "RootWindow");
 | 
			
		||||
                if (window->DC.ChildWindows.size() > 0) NodeWindows(window->DC.ChildWindows, "ChildWindows");
 | 
			
		||||
                ImGui::BulletText("Storage: %d bytes", (int)window->StateStorage.Data.size() * sizeof(ImGuiStorage::Pair));
 | 
			
		||||
                ImGui::TreePop();
 | 
			
		||||
            }
 | 
			
		||||
        };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user