Chromium Code Reviews| Index: base/metrics/histogram_base.h |
| diff --git a/base/metrics/histogram_base.h b/base/metrics/histogram_base.h |
| index 24c104cee4f204ee8dd93f2b40a16306f7d53844..d7cf9fb8096eae0e62e218c4a210f4a90461e8e1 100644 |
| --- a/base/metrics/histogram_base.h |
| +++ b/base/metrics/histogram_base.h |
| @@ -202,6 +202,10 @@ class BASE_EXPORT HistogramBase { |
| // changed since the last call. |
| virtual std::unique_ptr<HistogramSamples> SnapshotDelta() = 0; |
| + // Calculate the difference in histogram counts since the previous call to |
| + // SnapshotDelta(). Calls to this are idempotent. |
| + virtual std::unique_ptr<HistogramSamples> SnapshotDifference() const = 0; |
|
Ilya Sherman
2016/04/19 00:57:46
Hmm, I think the names SnapshotDelta() vs Snapshot
bcwhite
2016/04/19 16:33:37
How about "UploadDelta" (for the previously existi
|
| + |
| // The following methods provide graphical histogram displays. |
| virtual void WriteHTMLGraph(std::string* output) const = 0; |
| virtual void WriteAscii(std::string* output) const = 0; |