class

GSDL::Performance

Inherits Reference < Object

Constructors

new(sample_limit : Int32 = 120)
Source

Class methods

instance
Source

Instance methods

end_frame

Complete the measurement cycle for the current frame. Averages accumulated times into rolling samples and updates GSDL::Data.

Source
increment(name : String, amount = 1)

Increment a counter for the current frame.

Source
measure(name : String, &)

Measure the execution time of a block and accumulate it for the current frame.

Source
metrics

A rolling average of samples for each named measurement

Source
report

Print a summary of the performance for the entire session.

Source