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

Unified Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 2776853002: Make UMA_HISTOGRAM_ENUMERATION work with scoped enums. (Closed)
Patch Set: rebase Created 3 years, 9 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: content/browser/gpu/gpu_data_manager_impl_private.cc
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
index 93efce0c868e6fd643b50e1bfad7fc87b9cc0b82..a8aed63c7af29974eac7a0594f9bd56dc5a03bfa 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -146,16 +146,16 @@ void UpdateStats(const gpu::GPUInfo& gpu_info,
// was recorded in this histogram in order to have a convenient
// denominator to compute blacklist percentages for the rest of the
// entries.
- UMA_HISTOGRAM_ENUMERATION("GPU.BlacklistTestResultsPerEntry",
- 0, max_entry_id + 1);
+ UMA_HISTOGRAM_EXACT_LINEAR("GPU.BlacklistTestResultsPerEntry", 0,
+ max_entry_id + 1);
if (blacklisted_features.size() != 0) {
std::vector<uint32_t> flag_entries;
blacklist->GetDecisionEntries(&flag_entries, disabled);
DCHECK_GT(flag_entries.size(), 0u);
for (size_t i = 0; i < flag_entries.size(); ++i) {
- UMA_HISTOGRAM_ENUMERATION("GPU.BlacklistTestResultsPerEntry",
- flag_entries[i], max_entry_id + 1);
+ UMA_HISTOGRAM_EXACT_LINEAR("GPU.BlacklistTestResultsPerEntry",
+ flag_entries[i], max_entry_id + 1);
}
}
@@ -165,8 +165,8 @@ void UpdateStats(const gpu::GPUInfo& gpu_info,
disabled = true;
blacklist->GetDecisionEntries(&flag_disabled_entries, disabled);
for (uint32_t disabled_entry : flag_disabled_entries) {
- UMA_HISTOGRAM_ENUMERATION("GPU.BlacklistTestResultsPerDisabledEntry",
- disabled_entry, max_entry_id + 1);
+ UMA_HISTOGRAM_EXACT_LINEAR("GPU.BlacklistTestResultsPerDisabledEntry",
+ disabled_entry, max_entry_id + 1);
}
const gpu::GpuFeatureType kGpuFeatures[] = {

Powered by Google App Engine
This is Rietveld 408576698