Closed
Bug 782373
Opened 13 years ago
Closed 13 years ago
use HISTOGRAM_BOOLEAN more consistently
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: froydnj, Assigned: froydnj)
References
Details
Attachments
(1 file)
|
4.11 KB,
patch
|
taras.mozilla
:
review+
|
Details | Diff | Splinter Review |
We should use HISTOGRAM_BOOLEAN everywhere possible, for consistency and avoiding stupid errors.
| Assignee | ||
Comment 1•13 years ago
|
||
The obvious patch that you'd expect. CACHE_LM_INCONSISTENT doesn't get changed here because there's an outstanding patch in bug 781200 for doing that one.
Attachment #651495 -
Flags: review?(taras.mozilla)
Comment 2•13 years ago
|
||
Comment on attachment 651495 [details] [diff] [review]
patch
Shoudn't we ban non-boolean histograms of size 2 while at it?
Attachment #651495 -
Flags: review?(taras.mozilla)
| Assignee | ||
Comment 3•13 years ago
|
||
Comment on attachment 651495 [details] [diff] [review]
patch
(In reply to Taras Glek (:taras) from comment #2)
> Shoudn't we ban non-boolean histograms of size 2 while at it?
We already do:
http://mxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/Telemetry.cpp#197
Attachment #651495 -
Flags: review?(taras.mozilla)
Comment 4•13 years ago
|
||
Then how does the code your changing compile?
| Assignee | ||
Comment 5•13 years ago
|
||
(In reply to Taras Glek (:taras) from comment #4)
> Then how does the code your changing compile?
I don't understand why you think it wouldn't.
Comment 6•13 years ago
|
||
(In reply to Nathan Froyd (:froydnj) from comment #5)
> (In reply to Taras Glek (:taras) from comment #4)
> > Then how does the code your changing compile?
>
> I don't understand why you think it wouldn't.
Sorry I'm tired, missing obvious things. Nevermind my ask to make things not compile since that will be obsoleted by json equiv of telemetryhistograms.h file in near future.
I was thinking that we should ban declaring boolean histograms with 'HISTOGRAM(' to keep TelemetryHistograms.h consistent until the end of time...but since end of .h time is near...
Updated•13 years ago
|
Attachment #651495 -
Flags: review?(taras.mozilla) → review+
| Assignee | ||
Comment 7•13 years ago
|
||
Assignee: nobody → nfroyd
Status: NEW → ASSIGNED
Comment 8•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in
before you can comment on or make changes to this bug.
Description
•