pureweb.client.diagnostics. EventProfiler

An implementation of Profiler used to record the time spent within a given set of events.

Method Summary

begin
Triggers a new timed event.

Constructor

new EventProfiler(tickInterval)

Parameters:
Name Type Argument Description
tickInterval number <optional>
The duration of the timed event window, in milliseconds; if not specified, defaults to 1000 ms

Extends

Members

dutyCycle → number

The fraction of time spent in events for the last event window.

frequency → number

The number of events that occurred in the last event window.

Inherited Methods

|

Method Detail

begin() → {pureweb.client.diagnostics.TimedEventProfiler}

Triggers a new timed event. The event can be ended using the return event's end method. Will return a TimedEvent object representing the current event.