summaryrefslogtreecommitdiff
path: root/doc/classes/EngineDebugger.xml
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-02-06 01:55:58 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-02-06 17:33:45 +0100
commit789e648f4d5cf629240e8bcc7042322088a79949 (patch)
treefac912c4d2ffbaf61c9cd093f13aeac6aeb0a577 /doc/classes/EngineDebugger.xml
parent79a4d782a5ef0801fb65ee8c8a488942044c8e10 (diff)
[Debugger] New extensible EngineProfiler class.
Uses GDExtension, replaces old Callable system for profilers, and is also used internally.
Diffstat (limited to 'doc/classes/EngineDebugger.xml')
-rw-r--r--doc/classes/EngineDebugger.xml9
1 files changed, 2 insertions, 7 deletions
diff --git a/doc/classes/EngineDebugger.xml b/doc/classes/EngineDebugger.xml
index 861053b1c9..0e1bf99afc 100644
--- a/doc/classes/EngineDebugger.xml
+++ b/doc/classes/EngineDebugger.xml
@@ -65,14 +65,9 @@
<method name="register_profiler">
<return type="void" />
<argument index="0" name="name" type="StringName" />
- <argument index="1" name="toggle" type="Callable" />
- <argument index="2" name="add" type="Callable" />
- <argument index="3" name="tick" type="Callable" />
+ <argument index="1" name="profiler" type="EngineProfiler" />
<description>
- Registers a profiler with the given [code]name[/code].
- [code]toggle[/code] callable is called when the profiler is enabled/disabled. It must take an argument array as an argument.
- [code]add[/code] callable is called when data is added to profiler using [method EngineDebugger.profiler_add_frame_data]. It must take a data array as argument.
- [code]tick[/code] callable is called at every active profiler iteration. It must take frame time, idle time, physics time, and physics idle time as arguments.
+ Registers a profiler with the given [code]name[/code]. See [EngineProfiler] for more informations.
</description>
</method>
<method name="send_message">