Back to index
|nsIMetricsEventItem||createEventItem (in DOMString itemNamespace, in DOMString itemName)|
|Creates a new EventItem object to hold event data. |
|void||logEvent (in nsIMetricsEventItem item)|
|Logs an event using the given EventItem. |
|void||logSimpleEvent (in DOMString eventNS, in DOMString event, in nsIPropertyBag eventValues)|
|Constructs and logs an EventItem, using the given namespace, event name, and event properties. |
|Flush data to disk. |
|Initiate the upload of the current event log. |
|Suspend log collection. |
|Resume log collection. |
|unsigned long||getWindowID (in nsIDOMWindow window)|
|Gets a numeric window id corresponding to the given DOMWindow. |
|nsIMetricsEventItem nsIMetricsService::createEventItem||(||in DOMString||itemNamespace,|
Gets a numeric window id corresponding to the given DOMWindow.
The id remains constant for as long as the window exists.
Logs an event using the given EventItem.
The event is recorded with a timestamp generated at the time at which this method is called, and a session id for this instance of the application. The keys "time" and "sessionid" are reserved for this data.
|item||The item to log. This item and its entire tree of child items will be logged as part of the event.|
|void nsIMetricsService::logSimpleEvent||(||in DOMString||eventNS,|
Resume log collection.
Call this method once per call to suspend to re-enable log collection.
Suspend log collection.
LogEvent calls will be silently ignored while log collection is suspended. For each call to suspend, resume must be called to re-enable log collection.
Initiate the upload of the current event log.
This causes the current event log to be truncated once the upload completes.