add Telemetry::AutoCount

RESOLVED FIXED in mozilla12

Status

()

RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: froydnj, Assigned: froydnj)

Tracking

Trunk
mozilla12
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

7 years ago
We have a conveninent AutoTimer class for telemetry probes that measure time.  We should have an equivalent AutoCounter for simple numeric measurements.  This would be useful in the context of bug 715380 and friends, probably elsewhere, too.
(Assignee)

Comment 1

7 years ago
Created attachment 587105 [details] [diff] [review]
add Telemetry::AutoCounter

Simple class.  We don't need decrement yet, so don't bother with that.
Attachment #587105 - Flags: review?(taras.mozilla)

Updated

7 years ago
Attachment #587105 - Flags: review?(taras.mozilla) → review+
(Assignee)

Updated

7 years ago
Keywords: checkin-needed
http://hg.mozilla.org/integration/mozilla-inbound/rev/b4d322e5af47
Keywords: checkin-needed
Target Milestone: --- → mozilla12
(In reply to Dão Gottwald [:dao] from comment #2)
> http://hg.mozilla.org/integration/mozilla-inbound/rev/b4d322e5af47

backed out since it didn't compile.
(Assignee)

Comment 4

7 years ago
Created attachment 587691 [details] [diff] [review]
add Telemetry::AutoCounter

Whoops, s/MOZILLA/MOZ/g confusion.  Right patch now.
Attachment #587105 - Attachment is obsolete: true
Attachment #587691 - Flags: review+
(Assignee)

Updated

7 years ago
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/5660fa471b73
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.