Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Debugging.DebugPerformanceCounter Class Reference

Debug performance counter. More...

Inheritance diagram for Dragengine.Debugging.DebugPerformanceCounter:
Dragengine.Debugging.DebugInformation

Public Member Functions

bool getAccumulate ()
 Counter accumulates not clearing results.
String getDetails ()
 Details to display.
String getLabel ()
 Label to display.
DebugPerformanceCounter new (String label)
 Create performance counter.
void reset ()
 Reset called every frame update.
void setAccumulate (bool accumulate)
 Set if counter accumulates not clearing results.
void setLabel (String label)
 Set label to display.
void start ()
 Start timing measuring.
void stop ()
 Stop timing collecting result.

Protected Member Functions

RuntimeMeter getRuntimeMeter ()
 Runtime meter.

Detailed Description

Debug performance counter.

Uses a RuntimeMeter to collect timing samples. Displays the number of samples collected as well as the average time of all timing samples.

Member Function Documentation

◆ getAccumulate()

bool Dragengine.Debugging.DebugPerformanceCounter.getAccumulate ( )

Counter accumulates not clearing results.

Referenced by start().

◆ getDetails()

String Dragengine.Debugging.DebugPerformanceCounter.getDetails ( )

Details to display.

Implements Dragengine.Debugging.DebugInformation.

References setLabel().

Referenced by stop().

◆ getLabel()

String Dragengine.Debugging.DebugPerformanceCounter.getLabel ( )

Label to display.

Implements Dragengine.Debugging.DebugInformation.

References new().

Referenced by getRuntimeMeter().

◆ getRuntimeMeter()

RuntimeMeter Dragengine.Debugging.DebugPerformanceCounter.getRuntimeMeter ( )
protected

Runtime meter.

References getLabel().

Referenced by stop().

◆ new()

DebugPerformanceCounter Dragengine.Debugging.DebugPerformanceCounter.new ( String label)

Create performance counter.

References new().

Referenced by getLabel(), new(), setAccumulate(), setLabel(), and stop().

◆ reset()

void Dragengine.Debugging.DebugPerformanceCounter.reset ( )

Reset called every frame update.

Implements Dragengine.Debugging.DebugInformation.

Referenced by setAccumulate(), and stop().

◆ setAccumulate()

void Dragengine.Debugging.DebugPerformanceCounter.setAccumulate ( bool accumulate)

Set if counter accumulates not clearing results.

References new(), and reset().

Referenced by stop().

◆ setLabel()

void Dragengine.Debugging.DebugPerformanceCounter.setLabel ( String label)

Set label to display.

References new().

Referenced by getDetails().

◆ start()

void Dragengine.Debugging.DebugPerformanceCounter.start ( )

Start timing measuring.

References getAccumulate().

Referenced by stop().

◆ stop()

void Dragengine.Debugging.DebugPerformanceCounter.stop ( )

Stop timing collecting result.

References getDetails(), getRuntimeMeter(), new(), reset(), setAccumulate(), start(), and stop().

Referenced by stop().


The documentation for this class was generated from the following file: