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:
scawful
2025-10-10 10:05:21 -04:00
parent a2de6ba7d1
commit 411f842b20
25 changed files with 42 additions and 42 deletions

View File

@@ -4,7 +4,7 @@
#include <string>
#include "app/gfx/bpp_format_manager.h"
#include "app/gfx/bitmap.h"
#include "app/gfx/performance_profiler.h"
#include "app/gfx/performance/performance_profiler.h"
#include "app/gui/canvas_utils.h"
#include "app/gui/style.h"
#include "app/gui/canvas/canvas_automation_api.h"
@@ -150,8 +150,8 @@ void Canvas::Cleanup() {
selection_.Clear();
// Stop performance monitoring before cleanup to prevent segfault
if (performance_integration_) {
performance_integration_->StopMonitoring();
if (performance/performance_integration_) {
performance/performance_integration_->StopMonitoring();
}
// Cleanup enhanced components
@@ -175,7 +175,7 @@ void Canvas::InitializeEnhancedComponents() {
canvas::CanvasUsageManager::Get().RegisterTracker(canvas_id_, usage_tracker_);
// Initialize performance integration
performance_integration_ =
performance/performance_integration_ =
std::make_shared<canvas::CanvasPerformanceIntegration>();
performance_integration_->Initialize(canvas_id_);
performance_integration_->SetUsageTracker(usage_tracker_);
@@ -208,15 +208,15 @@ void Canvas::RecordCanvasOperation(const std::string& operation_name,
if (usage_tracker_) {
usage_tracker_->RecordOperation(operation_name, time_ms);
}
if (performance_integration_) {
performance_integration_->RecordOperation(operation_name, time_ms,
if (performance/performance_integration_) {
performance/performance_integration_->RecordOperation(operation_name, time_ms,
GetUsageMode());
}
}
void Canvas::ShowPerformanceUI() {
if (performance_integration_) {
performance_integration_->RenderPerformanceUI();
if (performance/performance_integration_) {
performance/performance_integration_->RenderPerformanceUI();
}
}