Closed Bug 716657 Opened 8 years ago Closed 8 years ago

add Telemetry::AutoCount

Categories

(Toolkit :: Telemetry, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: froydnj, Assigned: froydnj)

Details

Attachments

(1 file, 1 obsolete file)

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.
Attached patch add Telemetry::AutoCounter (obsolete) — Splinter Review
Simple class.  We don't need decrement yet, so don't bother with that.
Attachment #587105 - Flags: review?(taras.mozilla)
Attachment #587105 - Flags: review?(taras.mozilla) → review+
Keywords: checkin-needed
(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.
Whoops, s/MOZILLA/MOZ/g confusion.  Right patch now.
Attachment #587105 - Attachment is obsolete: true
Attachment #587691 - Flags: review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/5660fa471b73
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.