Added IO.MetricsAllocs counter (number of memory allocations

This commit is contained in:
ocornut
2015-05-15 12:05:05 +01:00
parent d9b2a90773
commit d9ca8f3145
2 changed files with 4 additions and 0 deletions

View File

@ -696,6 +696,7 @@ struct ImGuiIO
bool WantCaptureMouse; // Mouse is hovering a window or widget is active (= ImGui will use your mouse input)
bool WantCaptureKeyboard; // Widget is active (= ImGui will use your keyboard input)
float Framerate; // Framerate estimation, in frame per second. Rolling average estimation based on IO.DeltaTime over 120 frames
int MetricsAllocs; // Number of active memory allocations
int MetricsRenderVertices; // Vertices processed during last call to Render()
//------------------------------------------------------------------