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

Side by Side Diff: ui/gl/angle_platform_impl.cc

Issue 1141263004: Add ANGLE platform methods for boolean histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gl/angle_platform_impl.h" 5 #include "ui/gl/angle_platform_impl.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/metrics/sparse_histogram.h" 8 #include "base/metrics/sparse_histogram.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 DCHECK_EQ(name, counter->histogram_name()); 88 DCHECK_EQ(name, counter->histogram_name());
89 counter->Add(sample); 89 counter->Add(sample);
90 } 90 }
91 91
92 void ANGLEPlatformImpl::histogramSparse(const char* name, int sample) { 92 void ANGLEPlatformImpl::histogramSparse(const char* name, int sample) {
93 // For sparse histograms, we can use the macro, as it does not incorporate a 93 // For sparse histograms, we can use the macro, as it does not incorporate a
94 // static. 94 // static.
95 UMA_HISTOGRAM_SPARSE_SLOWLY(name, sample); 95 UMA_HISTOGRAM_SPARSE_SLOWLY(name, sample);
96 } 96 }
97 97
98 void ANGLEPlatformImpl::histogramBoolean(const char* name, bool sample) {
99 UMA_HISTOGRAM_BOOLEAN(name, sample);
Alexei Svitkine (slow) 2015/05/19 17:32:55 You have to expand out the macro, like you do for
Jamie Madill 2015/05/19 17:55:33 Done.
100 }
101
98 } // namespace gfx 102 } // namespace gfx
OLDNEW
« tools/metrics/histograms/histograms.xml ('K') | « ui/gl/angle_platform_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698