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: base/win/sampling_profiler.h

Issue 18119002: Use a direct include of time headers in base/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix 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
« no previous file with comments | « base/vlog_unittest.cc ('k') | 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 BASE_WIN_SAMPLING_PROFILER_H_ 5 #ifndef BASE_WIN_SAMPLING_PROFILER_H_
6 #define BASE_WIN_SAMPLING_PROFILER_H_ 6 #define BASE_WIN_SAMPLING_PROFILER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/time.h" 11 #include "base/time/time.h"
12 #include "base/win/scoped_handle.h" 12 #include "base/win/scoped_handle.h"
13 13
14 namespace base { 14 namespace base {
15 namespace win { 15 namespace win {
16 16
17 // This class exposes the functionality of Window's built-in sampling profiler. 17 // This class exposes the functionality of Window's built-in sampling profiler.
18 // Each profiler instance covers a range of memory, and while the profiler is 18 // Each profiler instance covers a range of memory, and while the profiler is
19 // running, its buckets will count the number of times the instruction counter 19 // running, its buckets will count the number of times the instruction counter
20 // lands in the associated range of memory on a sample. 20 // lands in the associated range of memory on a sample.
21 // The sampling interval is settable, but the setting is system-wide. 21 // The sampling interval is settable, but the setting is system-wide.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 bool is_started_; 64 bool is_started_;
65 std::vector<ULONG> buckets_; 65 std::vector<ULONG> buckets_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(SamplingProfiler); 67 DISALLOW_COPY_AND_ASSIGN(SamplingProfiler);
68 }; 68 };
69 69
70 } // namespace win 70 } // namespace win
71 } // namespace base 71 } // namespace base
72 72
73 #endif // BASE_WIN_SAMPLING_PROFILER_H_ 73 #endif // BASE_WIN_SAMPLING_PROFILER_H_
OLDNEW
« no previous file with comments | « base/vlog_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698