pureweb.client.diagnostics. FrequencyProfiler

An implementation of Profiler that records the number of ticks in a given window.

Method Summary

dispose_
Tears down this frequency profiler
reset
Resets the frequency timer and restarts the interval window.
tick
Records a tick.

Constructor

new FrequencyProfiler(windowMs)

Initializes a new instance of FrequencyProfiler.
Parameters:
Name Type Argument Description
windowMs number <optional>
The interval window, in milliseconds; if not specified, defaults to 1000 ms.

Extends

Members

frequency → number

The number of ticks recorded in the last interval window.

Inherited Methods

|

Method Detail

dispose_()

Tears down this frequency profiler

reset()

Resets the frequency timer and restarts the interval window.

tick()

Records a tick.