Integrate performance monitoring across various editors

- Added performance monitoring capabilities using ScopedTimer in the DungeonEditor, PaletteEditor, ScreenEditor, MessageEditor, MusicEditor, SpriteEditor, and SettingsEditor classes to track loading times.
- Enhanced the Load methods in each editor to include timing for critical operations, improving performance analysis and optimization.
- Removed unnecessary debug output in the Sprite class to clean up the codebase.
This commit is contained in:
scawful
2025-09-28 22:32:07 -04:00
parent cea73affdd
commit f210cd85b4
9 changed files with 1105 additions and 754 deletions

View File

@@ -1,6 +1,7 @@
#include "music_editor.h"
#include "absl/strings/str_format.h"
#include "app/core/performance_monitor.h"
#include "app/editor/code/assembly_editor.h"
#include "app/gui/icons.h"
#include "app/gui/input.h"
@@ -12,6 +13,7 @@ namespace editor {
void MusicEditor::Initialize() {}
absl::Status MusicEditor::Load() {
core::ScopedTimer timer("MusicEditor::Load");
return absl::OkStatus();
}