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
profilerInfo
Returns an XML element containing the profiling data; this element is added to the overall profiler information for this client.
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.

Method Detail

dispose_()

Tears down this frequency profiler

profilerInfo() → {Element}

Returns an XML element containing the profiling data; this element is added to the overall profiler information for this client.

reset()

Resets the frequency timer and restarts the interval window.

tick()

Records a tick.