DescriptionAdd 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
Committed: https://crrev.com/6779b5c3bc0f026f503628c136f7bd02efd3e02e
Cr-Commit-Position: refs/heads/master@{#341961}
Patch Set 1 #Patch Set 2 #
Total comments: 2
Patch Set 3 : Change variable name and fix a typo #
Total comments: 12
Patch Set 4 : Replacing MultiAdd with AddCount #Patch Set 5 : Fix a typo in comments. #Patch Set 6 : Handling negative counts in sparse histograms. #
Total comments: 12
Patch Set 7 : Removing clamping function and adding zero condition for count. #Patch Set 8 : Adding a blank line after DCHECKs #Patch Set 9 : Fixing unittests. #
Total comments: 2
Patch Set 10 : Removing extra space and add comment about min count #Patch Set 11 : After rebase-update #
Dependent Patchsets: Messages
Total messages: 20 (5 generated)
|