Skip to content
ClassDebugger & Diagnostics@public

FlxDiagnostics

Bounded, renderer-neutral runtime diagnostics collector.

ts
export declare class FlxDiagnostics

Constructors

ts
constructor(options?: FlxDiagnosticsOptions)

Constructs a new instance of the FlxDiagnostics class

ParameterTypeDescription
optionsFlxDiagnosticsOptions-

Properties

PropertyModifiersTypeDescription
samplesreadonlyreadonly FlxDiagnosticSample[]-

Methods

capture()

ts
capture(now?: Date): FlxDiagnosticSnapshot

Parameters:

ParameterTypeDescription
nowDate-

Returns: FlxDiagnosticSnapshot

clear()

ts
clear(): void

Returns: void

record()

ts
record(frame: number, updateMs: number, fps: number, timestamp: number): void

Parameters:

ParameterTypeDescription
framenumber-
updateMsnumber-
fpsnumber-
timestampnumber-

Returns: void

Released under the MIT License.