Chromium Code Reviews| Index: base/metrics/histogram_snapshot_manager.h |
| diff --git a/base/metrics/histogram_snapshot_manager.h b/base/metrics/histogram_snapshot_manager.h |
| index 42dbac225d830838db4f998020265ec8fe03e380..21b2beae7aa9a67aab7cedbce6359aad88ec24f5 100644 |
| --- a/base/metrics/histogram_snapshot_manager.h |
| +++ b/base/metrics/histogram_snapshot_manager.h |
| @@ -62,6 +62,9 @@ class BASE_EXPORT HistogramSnapshotManager { |
| // until FinishDeltas() completes. PrepareAbsolute() works the same |
| // but assumes there were no previous logged values and no future deltas |
| // will be created (and thus can work on read-only histograms). |
| + // PrepareDifference() is works like PrepareDelta() except that it does |
|
Ilya Sherman
2016/04/19 00:57:46
nit: s/is works/works
bcwhite
2016/04/19 16:33:37
Done.
|
| + // not update the previous logged values and can thus be used with |
| + // read-only files. |
| // Use Prepare*TakingOwnership() if it is desireable to have this class |
| // automatically delete the histogram once it is "finished". |
| void StartDeltas(); |
| @@ -70,6 +73,9 @@ class BASE_EXPORT HistogramSnapshotManager { |
| void PrepareAbsolute(const HistogramBase* histogram); |
| void PrepareAbsoluteTakingOwnership( |
| std::unique_ptr<const HistogramBase> histogram); |
| + void PrepareDifference(const HistogramBase* histogram); |
|
Ilya Sherman
2016/04/19 00:57:46
It looks like this method might never be used. Di
bcwhite
2016/04/19 16:33:37
It's used in FileMetricsProvider for atomic files.
Ilya Sherman
2016/04/20 07:12:14
FileMetricsProvider appears to use the TakingOwner
Ilya Sherman
2016/04/20 07:12:14
For the same reason, we wouldn't want to potential
bcwhite
2016/04/20 16:47:45
Oh, I see. You're correct. Those methods are jus
bcwhite
2016/04/20 16:47:45
I'm not following. Each metric on disk has both t
|
| + void PrepareDifferenceTakingOwnership( |
| + std::unique_ptr<const HistogramBase> histogram); |
| void FinishDeltas(); |
| private: |