Measure and report time between user-space process crashes.
BUG=none
TEST=unit tests, gmerged on the device and inspected
logs, about:histograms,etc.
Review URL: http://codereview.chromium.org/2736008
diff --git a/metrics/counter.h b/metrics/counter.h
index aac00af..876b107 100644
--- a/metrics/counter.h
+++ b/metrics/counter.h
@@ -22,8 +22,7 @@
public:
// Callback type used for reporting aggregated or flushed data.
// Once this callback is invoked by the counter, the reported
- // aggregated data is discarded. Only aggregated data with positive
- // counts is reported.
+ // aggregated data is discarded.
//
// |handle| is the |reporter_handle| pointer passed through Init.
// |tag| is the tag associated with the aggregated count.
@@ -124,8 +123,9 @@
// Updates the cached record given the new |tag| and |count|. This
// method expects either a null cached record, or a valid cached
- // record with the same tag as |tag|.
- void UpdateRecord(int tag, int count);
+ // record with the same tag as |tag|. If |flush| is true, the method
+ // asserts that the cached record is null and returns.
+ void UpdateRecord(int tag, int count, bool flush);
// If the cached record state is dirty, updates the persistent
// storage specified through file descriptor |fd| and switches the