new TimingEvent(title, indentopt, durationopt)
Holds information regarding a performance (timing) event.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
title |
string | Title of timing event. | |
indent |
int |
<optional> |
The nested level of the event. If not provided the current indent level is used. The current indent level is the indent last provided to an Event constructor or as modified by cycligent.timing.indent or cycligent.timing.unindent. |
duration |
int |
<optional> |
Milliseconds event lasted. Only used when the event occurred out-of-band (such as on a server) and the event is being logged to account for those times (such as the time it took for a query to run on the server). |
- Source:
Properties:
Name | Type | Description |
---|---|---|
title |
string | Title of timing event. |
startTime |
int | The number of milliseconds after the JavaScript Epoch that the event started. |
endTime |
int | The number of milliseconds after the JavaScript Epoch that the event ended. |
duration |
int | Milliseconds event lasted. |
running |
int | Total duration of the time line (since the last event at indent level 0). |
indent |
int | The nested level of the event. |
pending |
boolean | True when the event has not yet completed. |
external |
boolean | True when the event was provided by an external source and entered into the event array as is, the duration being computed by the external source. Overall timings are still computed based on the internal clock. |
expanded |
boolean | Indicates if the indent levels beneath this event are displayed. |
idle |
boolean | Indicates that this is an idle event, a period of time where the application is idle, often used to modify the display of the event. |
visible |
boolean | Indicates that the event is visible (not collapsed). |
hasChildren |
boolean | Indicates that this is event has children events underneath it. Please note, that the event list is a single list (timeline) and that events don't actually have children objects. Children, here, means that there are items directly beneath this item with a indent level greater than its own. |