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.
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)
Attachment #587105 - Flags: review?(taras.mozilla) → review+
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.
Created attachment 587691 [details] [diff] [review] add Telemetry::AutoCounter Whoops, s/MOZILLA/MOZ/g confusion. Right patch now.
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.