Class: Stats

Stats()

new Stats()

Helper class for internal PlotGlass stats

Source:

Methods

getFps(reset)

Get the average frames per second during the current collection period

Parameters:
Name Type Description
reset Boolean

Reset stats for this period

Source:

recordFrame()

Record a render frame

Source:

resetFps()

Reset stats for the current collection period

Source:

startFpsInterval(intervalSecs, label, log)

Start an interval that records stats periodically

Parameters:
Name Type Description
intervalSecs Number

Seconds between stat computatino

label String

String to print as part of console log

log Boolean

Set true if stats should print out to console

Source:

stopFpsInterval()

Stop any existing stats periodic

Source: