Merge pull request #97210 from AleksLitynski/object-snapshot-debugger

Add an ObjectDB Profiling Tool
This commit is contained in:
Thaddeus Crews
2025-10-03 12:01:11 -05:00
34 changed files with 3885 additions and 24 deletions

View File

@@ -1094,7 +1094,7 @@ class ObjectDB {
static void setup();
public:
typedef void (*DebugFunc)(Object *p_obj);
typedef void (*DebugFunc)(Object *p_obj, void *p_user_data);
_ALWAYS_INLINE_ static Object *get_instance(ObjectID p_instance_id) {
uint64_t id = p_instance_id;
@@ -1126,6 +1126,6 @@ public:
template <typename T>
_ALWAYS_INLINE_ static Ref<T> get_ref(ObjectID p_instance_id); // Defined in ref_counted.h
static void debug_objects(DebugFunc p_func);
static void debug_objects(DebugFunc p_func, void *p_user_data);
static int get_object_count();
};