mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 19:32:36 +00:00
Merge pull request #97210 from AleksLitynski/object-snapshot-debugger
Add an ObjectDB Profiling Tool
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user