:github_url: hide .. Generated automatically by doc/tools/make_rst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the EngineProfiler.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_EngineProfiler: EngineProfiler ============== **Inherits:** :ref:`RefCounted` **<** :ref:`Object` Base class for creating custom profilers. Description ----------- This class can be used to implement custom profilers that are able to interact with the engine and editor debugger. See :ref:`EngineDebugger` and :ref:`EditorDebuggerPlugin` for more information. Methods ------- +------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_add_frame` **(** :ref:`Array` data **)** |virtual| | +------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_tick` **(** :ref:`float` frame_time, :ref:`float` idle_time, :ref:`float` physics_time, :ref:`float` physics_frame_time **)** |virtual| | +------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_toggle` **(** :ref:`bool` enable, :ref:`Array` options **)** |virtual| | +------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Method Descriptions ------------------- .. _class_EngineProfiler_method__add_frame: - void **_add_frame** **(** :ref:`Array` data **)** |virtual| Called when data is added to profiler using :ref:`EngineDebugger.profiler_add_frame_data`. ---- .. _class_EngineProfiler_method__tick: - void **_tick** **(** :ref:`float` frame_time, :ref:`float` idle_time, :ref:`float` physics_time, :ref:`float` physics_frame_time **)** |virtual| Called once every engine iteration when the profiler is active with information about the current frame. ---- .. _class_EngineProfiler_method__toggle: - void **_toggle** **(** :ref:`bool` enable, :ref:`Array` options **)** |virtual| Called when the profiler is enabled/disabled, along with a set of ``options``. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`