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.
Comment 1 by bcwh...@chromium.org
, Feb 6 2018