New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 782231 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 682680



Sign in to add a comment

DataUse.ContentType.Services is Overflowing

Project Member Reported by bcwh...@chromium.org, Nov 7 2017

Issue description

The DataUse.ContentType.Services sparse histogram is being incremented so frequently that it sometimes overflows the 31-bit sample count and rolls negative.  This happens because it's incremented by the byte count.

https://uma.googleplex.com/p/chrome/histograms/?endDate=latest&dayCount=7&histograms=DataUse.ContentType.Services%2CUMA.NegativeSamples.Histogram%2CUMA.NegativeSamples.Reason&fixupData=true&showMax=true&filters=channel%2Ceq%2C1%2Cisofficial%2Ceq%2CTrue&implicitFilters=isofficial

Here's how I fixed a similar problem by counting KiB:
https://chromium-review.googlesource.com/c/chromium/src/+/729143
 
Blocking: 682680
So is DataUse.BackgroundToDataRecievedPerByte.User

Cc: rajendrant@chromium.org
Owner: ----
Status: Available (was: Assigned)
rajendrant seems to have left (absent >30days)
Components: Internals>Network>DataUse
I've just landed
https://chromium-review.googlesource.com/c/chromium/src/+/905148

Which adds AddScaled(), AddKilo(), and AddKiB() methods in the base histogram class to increment the count by a scaled amount.  Precision is lost but accuracy is maintained.

You can't just change the Add* method used, though; the name of the histogram needs to be changed (add a "K" suffix?) to avoid confusion.

Owner: rajendrant@chromium.org
Status: Assigned (was: Available)
Raj, please take a look at fixing this uma call you added.
Status: Started (was: Assigned)
https://chromium-review.googlesource.com/c/chromium/src/+/1055623 may be of use to you as an alternative to AddScaled() et al, especially if this is called frequently.  Once it's submitted, anyway.

Project Member

Comment 9 by bugdroid1@chromium.org, May 23 2018

Status: Fixed (was: Started)

Sign in to add a comment