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

Side by Side Diff: chromecast/base/metrics/cast_histograms.h

Issue 1012793003: Chromecast: removes histogram macro for AddCount. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROMECAST_BASE_METRICS_CAST_HISTOGRAMS_H_ 5 #ifndef CHROMECAST_BASE_METRICS_CAST_HISTOGRAMS_H_
6 #define CHROMECAST_BASE_METRICS_CAST_HISTOGRAMS_H_ 6 #define CHROMECAST_BASE_METRICS_CAST_HISTOGRAMS_H_
7 7
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 9
10 // STATIC_HISTOGRAM_POINTER_BLOCK only calls histogram_factory_get_invocation 10 // STATIC_HISTOGRAM_POINTER_BLOCK only calls histogram_factory_get_invocation
(...skipping 21 matching lines...) Expand all
32 bucket_count) \ 32 bucket_count) \
33 STATIC_HISTOGRAM_POINTER_BLOCK_NO_CACHE(name, Add(sample), \ 33 STATIC_HISTOGRAM_POINTER_BLOCK_NO_CACHE(name, Add(sample), \
34 base::Histogram::FactoryGet(name, min, max, bucket_count, \ 34 base::Histogram::FactoryGet(name, min, max, bucket_count, \
35 base::HistogramBase::kUmaTargetedHistogramFlag)) 35 base::HistogramBase::kUmaTargetedHistogramFlag))
36 36
37 #define UMA_HISTOGRAM_ENUMERATION_NO_CACHE(name, sample, boundary_value) \ 37 #define UMA_HISTOGRAM_ENUMERATION_NO_CACHE(name, sample, boundary_value) \
38 STATIC_HISTOGRAM_POINTER_BLOCK_NO_CACHE(name, Add(sample), \ 38 STATIC_HISTOGRAM_POINTER_BLOCK_NO_CACHE(name, Add(sample), \
39 base::LinearHistogram::FactoryGet(name, 1, boundary_value, \ 39 base::LinearHistogram::FactoryGet(name, 1, boundary_value, \
40 boundary_value + 1, base::Histogram::kUmaTargetedHistogramFlag)) 40 boundary_value + 1, base::Histogram::kUmaTargetedHistogramFlag))
41 41
42 #define UMA_HISTOGRAM_ENUMERATION_COUNT_NO_CACHE(name, sample, count, \
43 boundary_value) \
44 STATIC_HISTOGRAM_POINTER_BLOCK_NO_CACHE(name, AddCount(sample, count), \
45 base::LinearHistogram::FactoryGet(name, 1, boundary_value, \
46 boundary_value + 1, base::HistogramBase::kUmaTargetedHistogramFlag))
47
48 #endif // CHROMECAST_BASE_METRICS_CAST_HISTOGRAMS_H_ 42 #endif // CHROMECAST_BASE_METRICS_CAST_HISTOGRAMS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698