Create Profile.NumberOfActiveProfiles metric
Currently most Profile.NumberOf[...] metrics only count 28DA profiles.
However, the Profile.NumberOfProfiles metric counts all profiles,
including inactive ones.
Add a Profile.NumberOfActiveProfiles metric to use as denominator for
NumberOf[...] metrics that count active profiles. Also update the
documentation on the NumberOf[...] metrics to describe whether they
count all or only active profiles.
BUG=832005
Change-Id: I85a23dfd792e8a39a88459b989e911126a9fca48
Reviewed-on: https://chromium-review.googlesource.com/1021813
Reviewed-by: Mihai Sardarescu <[email protected]>
Reviewed-by: anthonyvd <[email protected]>
Reviewed-by: Mark Pearson <[email protected]>
Commit-Queue: Florian Uunk <[email protected]>
Cr-Commit-Position: refs/heads/master@{#553986}
diff --git a/components/profile_metrics/counts.cc b/components/profile_metrics/counts.cc
index 364857a66..b7531fdc 100644
--- a/components/profile_metrics/counts.cc
+++ b/components/profile_metrics/counts.cc
@@ -19,6 +19,7 @@
100 * counts.supervised / counts.total);
UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfSignedInProfiles",
counts.signedin);
+ UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfActiveProfiles", counts.active);
UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfUnusedProfiles", counts.unused);
UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfSignedInProfilesWithGAIAIcons",
counts.gaia_icon);