Closed Bug 1252481 Opened 8 years ago Closed 8 years ago

Remove "sum_squares_lo" and "sum_squares_hi" from Histogram serialization

Categories

(Toolkit :: Telemetry, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox47 --- affected
firefox48 --- fixed

People

(Reporter: gfritzsche, Assigned: malayaleecoder, Mentored)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [measurement:client] [lang=js])

Attachments

(1 file, 1 obsolete file)

We don't use the "sum_squares_lo" and "sum_squares_hi" properties anywhere in the aggregator or other analysis code that i know of.

We should just remove those properties:
https://dxr.mozilla.org/mozilla-central/search?q=regexp%3A(sum_squares_lo|sum_squares_hi)&case=true
Attached patch Bug1252481_v1.diff (obsolete) — Splinter Review
Hello Georg,

I tried to ask a doubt in #telemetry regarding this Bug and I did not get a response. So I am submitting a patch with reference to what you have said in comment#1. BTW I could not build the code and see after the changes have been made. Please have a look and suggest further improvements.
Flags: needinfo?(gfritzsche)
Comment on attachment 8725421 [details] [diff] [review]
Bug1252481_v1.diff

Review of attachment 8725421 [details] [diff] [review]:
-----------------------------------------------------------------

This looks promising.
Before full review, you should make sure that:
1) this builds properly on your machine
2) that the tests pass, using: ./mach toolkit/components/telemetry/tests/unit/

::: toolkit/components/telemetry/Telemetry.cpp
@@ -1242,2 @@
>  
>    if (h->histogram_type() != Histogram::HISTOGRAM) {

We should remove this whole section, it only prepares data for sum_squares_lo/_hi below.
Attachment #8725421 - Flags: feedback+
If you have problems building you could ask for help with that in #introduction or #telemetry or drop me a mail.
Flags: needinfo?(gfritzsche)
Georg, Currently self assigning this. Will fix this within a day or two and submit an updated patch. Hope it won't be a problem.
Assignee: nobody → malayaleecoder
Status: NEW → ASSIGNED
Flags: needinfo?(gfritzsche)
Sure, that sounds good.
Flags: needinfo?(gfritzsche)
Georg, have done the said changes. The build was a success locally. Sorry for the delay. Please have a look :)
Attachment #8725421 - Attachment is obsolete: true
Attachment #8729673 - Flags: review?(gfritzsche)
Blocks: 1256366
Comment on attachment 8729673 [details] [diff] [review]
Bug1252481_v2.diff

Review of attachment 8729673 [details] [diff] [review]:
-----------------------------------------------------------------

This looks good, thanks!

I realized that now the backing code for sum_squares in histogram.cc/.h is not needed anymore, but we can remove that over in bug 1256366.
Attachment #8729673 - Flags: review?(gfritzsche) → review+
I built & ran the tests successfully locally and don't expect any fallout, so this should be fine to check in.
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/bc86dd459e67
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: