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

Side by Side Diff: third_party/WebKit/Source/platform/Histogram.h

Issue 2810413002: Rewrite references to "wtf/" to "platform/wtf/" in the rest of platform/. (Closed)
Patch Set: Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 Histogram_h 5 #ifndef Histogram_h
6 #define Histogram_h 6 #define Histogram_h
7 7
8 #include <stdint.h>
8 #include "base/metrics/histogram_base.h" 9 #include "base/metrics/histogram_base.h"
9 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
10 #include "platform/PlatformExport.h" 11 #include "platform/PlatformExport.h"
11 #include "wtf/CurrentTime.h" 12 #include "platform/wtf/CurrentTime.h"
12 #include <stdint.h>
13 13
14 namespace base { 14 namespace base {
15 class HistogramBase; 15 class HistogramBase;
16 }; 16 };
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class PLATFORM_EXPORT CustomCountHistogram { 20 class PLATFORM_EXPORT CustomCountHistogram {
21 public: 21 public:
22 // Min values should be >=1 as emitted 0s still go into the underflow bucket. 22 // Min values should be >=1 as emitted 0s still go into the underflow bucket.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // This macro records all times between 0us and 10 seconds. 80 // This macro records all times between 0us and 10 seconds.
81 // Do not change this macro without renaming all metrics that use it! 81 // Do not change this macro without renaming all metrics that use it!
82 #define SCOPED_BLINK_UMA_HISTOGRAM_TIMER(name) \ 82 #define SCOPED_BLINK_UMA_HISTOGRAM_TIMER(name) \
83 DEFINE_STATIC_LOCAL(CustomCountHistogram, scoped_us_counter, \ 83 DEFINE_STATIC_LOCAL(CustomCountHistogram, scoped_us_counter, \
84 (name, 0, 10000000, 50)); \ 84 (name, 0, 10000000, 50)); \
85 ScopedUsHistogramTimer timer(scoped_us_counter); 85 ScopedUsHistogramTimer timer(scoped_us_counter);
86 86
87 } // namespace blink 87 } // namespace blink
88 88
89 #endif // Histogram_h 89 #endif // Histogram_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/FrameViewBase.cpp ('k') | third_party/WebKit/Source/platform/HostWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698