refactor: Restructure Performance Profiler and Dashboard Integration
- Updated file paths for performance-related headers to reflect new directory structure under `app/gfx/performance/`. - Introduced new `PerformanceDashboard` and `PerformanceProfiler` classes for comprehensive performance monitoring and reporting. - Enhanced performance metrics collection and visualization capabilities, including real-time updates and detailed reports. - Improved memory usage tracking and optimization status analysis within the graphics system. - Ensured compatibility with existing components by updating include directives across multiple files.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include <memory>
|
||||
|
||||
#include "app/gfx/bitmap.h"
|
||||
#include "app/gfx/performance_profiler.h"
|
||||
#include "app/gfx/performance/performance_profiler.h"
|
||||
#include "app/gfx/bpp_format_manager.h"
|
||||
|
||||
namespace yaze {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <stdexcept>
|
||||
|
||||
#include "app/gfx/arena.h"
|
||||
#include "app/gfx/performance_profiler.h"
|
||||
#include "app/gfx/performance/performance_profiler.h"
|
||||
#include "app/gfx/snes_palette.h"
|
||||
#include "util/log.h"
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "app/gfx/bitmap.h"
|
||||
#include "app/gfx/snes_palette.h"
|
||||
#include "app/gfx/performance_profiler.h"
|
||||
#include "app/gfx/performance/performance_profiler.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace gfx {
|
||||
|
||||
@@ -6,8 +6,8 @@ set(
|
||||
app/gfx/bitmap.cc
|
||||
app/gfx/compression.cc
|
||||
app/gfx/memory_pool.cc
|
||||
app/gfx/performance_dashboard.cc
|
||||
app/gfx/performance_profiler.cc
|
||||
app/gfx/performance/performance_dashboard.cc
|
||||
app/gfx/performance/performance_profiler.cc
|
||||
app/gfx/scad_format.cc
|
||||
app/gfx/snes_palette.cc
|
||||
app/gfx/snes_tile.cc
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <string>
|
||||
|
||||
#include "app/gfx/bpp_format_manager.h"
|
||||
#include "app/gfx/performance_profiler.h"
|
||||
#include "app/gfx/performance/performance_profiler.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace gfx {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "app/gfx/performance_dashboard.h"
|
||||
#include "app/gfx/performance/performance_dashboard.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <iomanip>
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include "app/gfx/atlas_renderer.h"
|
||||
#include "app/gfx/memory_pool.h"
|
||||
#include "app/gfx/performance_profiler.h"
|
||||
#include "app/gfx/performance/performance_profiler.h"
|
||||
#include "imgui/imgui.h"
|
||||
|
||||
namespace yaze {
|
||||
@@ -1,12 +1,12 @@
|
||||
#ifndef YAZE_APP_GFX_PERFORMANCE_DASHBOARD_H
|
||||
#define YAZE_APP_GFX_PERFORMANCE_DASHBOARD_H
|
||||
#ifndef YAZE_APP_GFX_PERFORMANCE_PERFORMANCE_DASHBOARD_H
|
||||
#define YAZE_APP_GFX_PERFORMANCE_PERFORMANCE_DASHBOARD_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <chrono>
|
||||
|
||||
#include "app/gfx/performance_profiler.h"
|
||||
#include "app/gfx/performance/performance_profiler.h"
|
||||
#include "app/gfx/memory_pool.h"
|
||||
#include "app/gfx/atlas_renderer.h"
|
||||
|
||||
@@ -159,4 +159,4 @@ class PerformanceDashboard {
|
||||
} // namespace gfx
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_GFX_PERFORMANCE_DASHBOARD_H
|
||||
#endif // YAZE_APP_GFX_PERFORMANCE_PERFORMANCE_DASHBOARD_H
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "app/gfx/performance_profiler.h"
|
||||
#include "app/gfx/performance/performance_profiler.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <iomanip>
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef YAZE_APP_GFX_PERFORMANCE_PROFILER_H
|
||||
#define YAZE_APP_GFX_PERFORMANCE_PROFILER_H
|
||||
#ifndef YAZE_APP_GFX_PERFORMANCE_PERFORMANCE_PROFILER_H
|
||||
#define YAZE_APP_GFX_PERFORMANCE_PERFORMANCE_PROFILER_H
|
||||
|
||||
#include <chrono>
|
||||
#include <string>
|
||||
@@ -206,4 +206,4 @@ class ScopedTimer {
|
||||
} // namespace gfx
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_GFX_PERFORMANCE_PROFILER_H
|
||||
#endif // YAZE_APP_GFX_PERFORMANCE_PERFORMANCE_PROFILER_H
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "app/gfx/arena.h"
|
||||
#include "app/gfx/atlas_renderer.h"
|
||||
#include "app/gfx/bitmap.h"
|
||||
#include "app/gfx/performance_profiler.h"
|
||||
#include "app/gfx/performance/performance_profiler.h"
|
||||
#include "app/gfx/snes_tile.h"
|
||||
|
||||
namespace yaze {
|
||||
|
||||
Reference in New Issue
Block a user