Add support to increase a UMA histogram bucket by an aribitrary integer.

The UMA code supports counting events that fall into ranges (buckets),
and this is implemented by adding 1 to the count for particular range.
The change is to add an arbitrary amount to a bucket on a single event.

To achieve this goal, we have added MultiAdd function to Histogram and
SparseHistogram classes. So the user of these classes will be able to
increase the count number of a bucket in these classes by an arbitrary
integer instead of one which is hardcoded in their Add function.

BUG=514317

Review URL: https://codereview.chromium.org/1256363002

Cr-Commit-Position: refs/heads/master@{#341961}


CrOS-Libchrome-Original-Commit: 6779b5c3bc0f026f503628c136f7bd02efd3e02e
7 files changed
tree: d5d33c2a9432b0501fe7b4d7fc10152082eb911f
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/