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

Unified Diff: base/metrics/field_trial.cc

Issue 2453093002: Create FieldTrialAllocator.Size histogram (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/field_trial.cc
diff --git a/base/metrics/field_trial.cc b/base/metrics/field_trial.cc
index 911c8e5ee9842759c3c820929e268098e6a6dbd6..2fd0bd2e9ce6957be8b42afde536eeda4ff901e8 100644
--- a/base/metrics/field_trial.cc
+++ b/base/metrics/field_trial.cc
@@ -12,6 +12,7 @@
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/logging.h"
+#include "base/metrics/histogram_macros.h"
#include "base/process/memory.h"
#include "base/rand_util.h"
#include "base/strings/string_number_conversions.h"
@@ -724,6 +725,8 @@ void FieldTrialList::CopyFieldTrialStateToFlags(
std::to_string(field_trial_length);
cmd_line->AppendSwitchASCII(field_trial_handle_switch, field_trial_handle);
+ UMA_HISTOGRAM_COUNTS_10000("UMA.Metrics.FieldTrialAllocator.Size",
+ field_trial_length);
return;
}
#endif
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698