![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
ImGui panel that visualizes PerformanceProfiler data. More...
#include <ProfilerPanel.h>
Public Member Functions | |
| ProfilerPanel () | |
| ~ProfilerPanel () | |
| void | Initialize () |
| void | Shutdown () |
| void | Render () |
| Renders the profiler panel window. | |
| void | SetVisible (bool v) |
| bool | IsVisible () const |
Private Member Functions | |
| void | RenderControls () |
| void | RenderFrameTimeline () |
| void | RenderHotspotTable () |
Private Attributes | |
| bool | m_visible = true |
| bool | m_autoScroll = true |
| int | m_historyCount = 60 |
| Frames shown in timeline. | |
ImGui panel that visualizes PerformanceProfiler data.
Renders a frame timeline bar chart and a hotspot table sorted by average execution time descending. Provides an "Export CSV" button that calls PerformanceProfiler::SaveToFile().
Definition at line 25 of file ProfilerPanel.h.
| Olympe::ProfilerPanel::ProfilerPanel | ( | ) |
Definition at line 27 of file ProfilerPanel.cpp.
| Olympe::ProfilerPanel::~ProfilerPanel | ( | ) |
Definition at line 31 of file ProfilerPanel.cpp.
| void Olympe::ProfilerPanel::Initialize | ( | ) |
Definition at line 35 of file ProfilerPanel.cpp.
Referenced by Olympe::BlueprintEditorGUI::Initialize().
Here is the caller graph for this function:
|
inline |
Definition at line 40 of file ProfilerPanel.h.
References m_visible.
| void Olympe::ProfilerPanel::Render | ( | ) |
Renders the profiler panel window.
Definition at line 47 of file ProfilerPanel.cpp.
References m_visible, RenderControls(), RenderFrameTimeline(), and RenderHotspotTable().
Referenced by Olympe::BlueprintEditorGUI::RenderFixedLayout().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 67 of file ProfilerPanel.cpp.
References Olympe::PerformanceProfiler::Get(), GetComponentTypeID_Static(), m_autoScroll, and m_historyCount.
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 136 of file ProfilerPanel.cpp.
References Olympe::FrameProfile::frameNumber, Olympe::PerformanceProfiler::Get(), GetComponentTypeID_Static(), Olympe::PerformanceProfiler::HOTSPOT_THRESHOLD_MS, m_autoScroll, m_historyCount, Olympe::FrameProfile::nodeMetrics, and Olympe::FrameProfile::totalFrameTimeMs.
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 193 of file ProfilerPanel.cpp.
References Olympe::NodeExecutionMetrics::avgTimeMs, Olympe::PerformanceProfiler::Get(), GetComponentTypeID_Static(), and Olympe::PerformanceProfiler::HOTSPOT_THRESHOLD_MS.
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 39 of file ProfilerPanel.h.
References GetComponentTypeID_Static(), and m_visible.
Here is the call graph for this function:| void Olympe::ProfilerPanel::Shutdown | ( | ) |
Definition at line 39 of file ProfilerPanel.cpp.
Referenced by Olympe::BlueprintEditorGUI::Shutdown().
Here is the caller graph for this function:Definition at line 49 of file ProfilerPanel.h.
Referenced by RenderControls(), and RenderFrameTimeline().
|
private |
Frames shown in timeline.
Definition at line 50 of file ProfilerPanel.h.
Referenced by RenderControls(), and RenderFrameTimeline().
Definition at line 48 of file ProfilerPanel.h.
Referenced by IsVisible(), Render(), and SetVisible().