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

Unified Diff: chrome/installer/setup/installer_metrics.cc

Issue 1726873002: Report histogram creation results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: some 'git cl format' changes Created 4 years, 10 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: chrome/installer/setup/installer_metrics.cc
diff --git a/chrome/installer/setup/installer_metrics.cc b/chrome/installer/setup/installer_metrics.cc
index 8e5f0443e437f7589493be0818c56ef397cf2b17..6347d3245fa3cdfdd57880168f451271ad97d01b 100644
--- a/chrome/installer/setup/installer_metrics.cc
+++ b/chrome/installer/setup/installer_metrics.cc
@@ -21,6 +21,10 @@ void BeginPersistentHistogramStorage() {
installer::kSetupHistogramAllocatorName));
base::GetPersistentHistogramMemoryAllocator()->CreateTrackingHistograms(
installer::kSetupHistogramAllocatorName);
+
+ // This can't be enabled until after the allocator is configured because
+ // there is no other reporting out of setup other than persistent memory.
+ base::HistogramBase::EnableCreationReportHistogram("setup");
Alexei Svitkine (slow) 2016/03/01 16:41:34 I find it unfortunate that we need an extra call (
bcwhite 2016/03/02 19:14:19 Most of the time, the Report histogram will be ena
Alexei Svitkine (slow) 2016/03/03 17:56:23 You can have a helper function that calls the macr
bcwhite 2016/03/07 13:39:25 I guess I've done so much work on histograms that
Alexei Svitkine (slow) 2016/03/07 16:16:46 Right - my preference is to use the macros because
bcwhite 2016/03/07 20:09:25 Well... We're just going to have to agree to disa
Alexei Svitkine (slow) 2016/03/07 20:26:22 Okay, that's fair. Can you add a comment about thi
bcwhite 2016/03/07 20:47:34 Done.
Alexei Svitkine (slow) 2016/03/07 21:14:50 Yep - I see it! (I was using --gunit_shuffle inste
bcwhite 2016/03/07 22:20:41 Done.
}
void EndPersistentHistogramStorage(const base::FilePath& target_path) {

Powered by Google App Engine
This is Rietveld 408576698