Drag[en]gine Script Module DragonScript  1.23
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. More...
 
String getDetails ()
 Details to display. More...
 
String getLabel ()
 Label to display. More...
 
DebugPerformanceCounter new (String label)
 Create performance counter. More...
 
void reset ()
 Reset called every frame update. More...
 
void setAccumulate (bool accumulate)
 Set if counter accumulates not clearing results. More...
 
void setLabel (String label)
 Set label to display. More...
 
void start ()
 Start timing measuring. More...
 
void stop ()
 Stop timing collecting result. More...
 

Protected Member Functions

RuntimeMeter getRuntimeMeter ()
 Runtime meter. More...
 

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.

◆ getDetails()

String Dragengine.Debugging.DebugPerformanceCounter.getDetails ( )

Details to display.

Implements Dragengine.Debugging.DebugInformation.

◆ getLabel()

String Dragengine.Debugging.DebugPerformanceCounter.getLabel ( )

Label to display.

Implements Dragengine.Debugging.DebugInformation.

◆ getRuntimeMeter()

RuntimeMeter Dragengine.Debugging.DebugPerformanceCounter.getRuntimeMeter ( )
protected

Runtime meter.

◆ new()

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

Create performance counter.

◆ reset()

void Dragengine.Debugging.DebugPerformanceCounter.reset ( )

Reset called every frame update.

Implements Dragengine.Debugging.DebugInformation.

◆ setAccumulate()

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

Set if counter accumulates not clearing results.

◆ setLabel()

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

Set label to display.

◆ start()

void Dragengine.Debugging.DebugPerformanceCounter.start ( )

Start timing measuring.

◆ stop()

void Dragengine.Debugging.DebugPerformanceCounter.stop ( )

Stop timing collecting result.


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