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

Side by Side Diff: sync/util/data_type_histogram.h

Issue 18031009: Use a direct include of time headers in rlz/, skia/, sql/, sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 SYNC_UTIL_DATA_TYPE_HISTOGRAM_H_ 5 #ifndef SYNC_UTIL_DATA_TYPE_HISTOGRAM_H_
6 #define SYNC_UTIL_DATA_TYPE_HISTOGRAM_H_ 6 #define SYNC_UTIL_DATA_TYPE_HISTOGRAM_H_
7 7
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/time.h" 9 #include "base/time/time.h"
10 #include "sync/internal_api/public/base/model_type.h" 10 #include "sync/internal_api/public/base/model_type.h"
11 11
12 // For now, this just implements UMA_HISTOGRAM_LONG_TIMES. This can be adjusted 12 // For now, this just implements UMA_HISTOGRAM_LONG_TIMES. This can be adjusted
13 // if we feel the min, max, or bucket count amount are not appropriate. 13 // if we feel the min, max, or bucket count amount are not appropriate.
14 #define SYNC_FREQ_HISTOGRAM(name, time) UMA_HISTOGRAM_CUSTOM_TIMES( \ 14 #define SYNC_FREQ_HISTOGRAM(name, time) UMA_HISTOGRAM_CUSTOM_TIMES( \
15 name, time, base::TimeDelta::FromMilliseconds(1), \ 15 name, time, base::TimeDelta::FromMilliseconds(1), \
16 base::TimeDelta::FromHours(1), 50) 16 base::TimeDelta::FromHours(1), 50)
17 17
18 // Helper macro for datatype specific histograms. For each datatype, invokes 18 // Helper macro for datatype specific histograms. For each datatype, invokes
19 // a pre-defined PER_DATA_TYPE_MACRO(type_str), where |type_str| is the string 19 // a pre-defined PER_DATA_TYPE_MACRO(type_str), where |type_str| is the string
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 case ::syncer::PROXY_TABS: \ 114 case ::syncer::PROXY_TABS: \
115 PER_DATA_TYPE_MACRO("Tabs"); \ 115 PER_DATA_TYPE_MACRO("Tabs"); \
116 break; \ 116 break; \
117 default: \ 117 default: \
118 NOTREACHED() << "Unknown datatype " \ 118 NOTREACHED() << "Unknown datatype " \
119 << ::syncer::ModelTypeToString(datatype); \ 119 << ::syncer::ModelTypeToString(datatype); \
120 } \ 120 } \
121 } while (0) 121 } while (0)
122 122
123 #endif // SYNC_UTIL_DATA_TYPE_HISTOGRAM_H_ 123 #endif // SYNC_UTIL_DATA_TYPE_HISTOGRAM_H_
OLDNEW
« no previous file with comments | « sync/test/accounts_client/test_accounts_client.cc ('k') | sync/util/data_type_histogram_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698