Closed Bug 332172 Opened 18 years ago Closed 18 years ago

Support nested event structures

Categories

(Toolkit Graveyard :: Data Collection/Metrics, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bryner, Assigned: bryner)

References

Details

Attachments

(1 file)

Currently, the metrics service only supports a flat event structure.  For the profile event outlined on http://wiki.mozilla.org/Browser_Metrics:Data_Collectors , we need to make it support nested data structures.
Attached patch patchSplinter Review
I might have gone a little overboard with the accessors for the child item list, but I figured we should make this as easy as possible for API consumers to use.
Attachment #216684 - Flags: first-review?(marria)
Attachment #216684 - Flags: first-review?(marria) → first-review+
Just for completeness, we talked offline about whether it would make sense to just expose the DOMElement for event items rather than having a separate interface that mirrors much of that functionality.  Doing it that way, though, would expose the metrics document via the element's ownerDocument, and I don't think we want that to be accessible through this API.  (hack-arounds with a separate document and cloning the tree are possible, but not so great)

So we're going to stick with this approach for now.
checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: first-review+
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: