Add an ObjectDB Profiling Tool

A new tab is added to the debugger that can help profile a game's memory usage.

Specifically, this lets you save a snapshot of all the objects in a running
game's ObjectDB to disk. It then lets you view the snapshot and diff two
snapshots against each other. This is meant to work similarly to Chrome's
heap snapshot tool or Unity's memory profiler.
This commit is contained in:
Aleksander Litynski 2025-05-06 10:30:52 +02:00 committed by Mikael Hermansson
parent 4d1f26e1fd
commit 78f1543e35
40 changed files with 4262 additions and 109 deletions

View file

@ -510,6 +510,7 @@ private:
int expand_ratio = 1;
bool expand = true;
bool clip_content = false;
String title_tooltip;
String title;
String xl_title;
HorizontalAlignment title_alignment = HORIZONTAL_ALIGNMENT_CENTER;
@ -835,6 +836,9 @@ public:
void set_column_title(int p_column, const String &p_title);
String get_column_title(int p_column) const;
void set_column_title_tooltip_text(int p_column, const String &p_tooltip);
String get_column_title_tooltip_text(int p_column) const;
void set_column_title_alignment(int p_column, HorizontalAlignment p_alignment);
HorizontalAlignment get_column_title_alignment(int p_column) const;