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:
@@ -1,5 +1,6 @@
|
||||
#include "sprite_editor.h"
|
||||
|
||||
#include "app/core/performance_monitor.h"
|
||||
#include "app/core/platform/file_dialog.h"
|
||||
#include "app/editor/sprite/zsprite.h"
|
||||
#include "app/gfx/arena.h"
|
||||
@@ -24,7 +25,10 @@ using ImGui::Text;
|
||||
|
||||
void SpriteEditor::Initialize() {}
|
||||
|
||||
absl::Status SpriteEditor::Load() { return absl::OkStatus(); }
|
||||
absl::Status SpriteEditor::Load() {
|
||||
core::ScopedTimer timer("SpriteEditor::Load");
|
||||
return absl::OkStatus();
|
||||
}
|
||||
|
||||
absl::Status SpriteEditor::Update() {
|
||||
if (rom()->is_loaded() && !sheets_loaded_) {
|
||||
|
||||
Reference in New Issue
Block a user