Class ProfilerWindow
Editor tool window for profiling games.
Inheritance
Implements
Namespace: FlaxEditor.Windows.Profiler
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class ProfilerWindow : EditorWindow, IComparable, IDrawable
Constructors
ProfilerWindow(Editor)
Initializes a new instance of the ProfilerWindow class.
Declaration
public ProfilerWindow(Editor editor)
Parameters
Editor
editor
The editor. |
Properties
LiveRecording
Gets or sets a value indicating whether live events recording is enabled.
Declaration
public bool LiveRecording { get; set; }
Property Value
System.Boolean
|
ShowOnlyLastUpdateEvents
Gets or sets a value indicating whether show only last update events and hide events from the other callbacks (e.g. draw or fixed update).
Declaration
public bool ShowOnlyLastUpdateEvents { get; set; }
Property Value
System.Boolean
|
ViewFrameIndex
Gets or sets the index of the selected frame to view (note: some view modes may not use it). -1 for the last frame.
Declaration
public int ViewFrameIndex { get; set; }
Property Value
System.Int32
|
Methods
AddMode(ProfilerMode)
Adds the mode.
Declaration
public void AddMode(ProfilerMode mode)
Parameters
ProfilerMode
mode
The mode. |
Remarks
To remove the mode simply call Dispose() on mode.
Clear()
Clears data.
Declaration
public void Clear()
OnInit()
Called when window should be initialized. At this point, main window, content database, default editor windows are ready.
Declaration
public override void OnInit()
Overrides
OnKeyDown(KeyboardKeys)
When key goes down
Declaration
public override bool OnKeyDown(KeyboardKeys key)
Parameters
KeyboardKeys
key
Key value |
Returns
System.Boolean
True if event has been handled, otherwise false |
Overrides
OnUpdate()
Called when every engine update. Note: Update(Single) may be called at the lower frequency than the engine updates.
Declaration
public override void OnUpdate()