OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |