Add C++ API for recording events
Categories
(Toolkit :: Telemetry, defect, P1)
Tracking
()
People
(Reporter: gfritzsche, Assigned: chutten)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [measurement:client])
Attachments
(3 files, 3 obsolete files)
Reporter | ||
Comment 2•7 years ago
|
||
Comment 4•6 years ago
|
||
Reporter | ||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 11•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 12•6 years ago
|
||
I more or less have this written, though the test would have me believe otherwise.
Assignee | ||
Comment 13•6 years ago
|
||
Assignee | ||
Comment 14•6 years ago
|
||
Depends on D16877
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 15•6 years ago
|
||
Comment on attachment 9037306 [details]
Bug 1313327 - Add a C++ API for recording Telemetry Events. r?janerik
Replacing f? with ni?
Assignee | ||
Comment 16•6 years ago
|
||
Extreme cold this week kept me from finishing the patch (it's on a computer under a desk at my coworking location which I've been unable to cycle to). The weather will have less of a "frostbite in minutes" character by Tuesday when I expect to be able to finish it, update the review docs to prefer enums over string-based APIs, and pass it to try.
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Comment 17•6 years ago
|
||
To support a non-templated API for recording events by enum, all the enum
values must be of the same type. Inheritence doesn't really seem to be a thing
in C++ enums, so that means flattening them all into a single, big enum the
way Scalars and Histograms work.
Alas.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 18•6 years ago
|
||
To support a non-templated API for recording events by enum, all the enum
values must be of the same type. Inheritence doesn't really seem to be a thing
in C++ enums, so that means flattening them all into a single, big enum the
way Scalars and Histograms work.
Alas.
Assignee | ||
Comment 19•6 years ago
|
||
This isn't the most efficient implementation as it uses the enum parameter to
fetch the strings and then uses internal string APIs (which then get the enum
again), but it's the most straightforward impl with a smallish patch.
If this starts showing on profiles we can look into efficiency then.
Depends on D18691
Assignee | ||
Comment 20•6 years ago
|
||
Depends on D18692
Assignee | ||
Comment 21•6 years ago
|
||
Assignee | ||
Comment 22•6 years ago
|
||
Do you require a C++ API to enable the category to be able to be recorded, or is that something you'll be able to do from JS?
Comment 23•6 years ago
|
||
Comment 24•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/bcbe1dc28725
https://hg.mozilla.org/mozilla-central/rev/2ad12527e422
https://hg.mozilla.org/mozilla-central/rev/9bf817ce243c
Assignee | ||
Comment 25•6 years ago
|
||
I gave you a C++ API for enabling because I was in the neighbourhood :)
Please let me know if you have any questions about using this.
Updated•6 years ago
|
Description
•