Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: components/sync/base/data_type_histogram.h

Issue 2950583003: [Sync] Record sync memory usage in histogram broken by datatypes (Closed)
Patch Set: Cleanup Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/sync/base/data_type_histogram.h
diff --git a/components/sync/base/data_type_histogram.h b/components/sync/base/data_type_histogram.h
index 642c8848cc8dd3aebc42a3084d3ebf75eb3b9cba..51d9c4e749c98288da3c7f27b9239ca66dc86587 100644
--- a/components/sync/base/data_type_histogram.h
+++ b/components/sync/base/data_type_histogram.h
@@ -17,6 +17,12 @@
// So different DataTypes play the role of different buckets in this histogram.
void SyncRecordDatatypeBin(const std::string& name, int sample, int value);
+// Records memory size |value| in kilobytes into |model_type| related histogram
+// with prefix |histogram_name_prefix|.
+void SyncRecordMemoryKbHistogram(const std::string& histogram_name_prefix,
+ syncer::ModelType model_type,
+ size_t value);
+
// For now, this just implements UMA_HISTOGRAM_LONG_TIMES. This can be adjusted
// if we feel the min, max, or bucket count amount are not appropriate.
#define SYNC_FREQ_HISTOGRAM(name, time) \

Powered by Google App Engine
This is Rietveld 408576698