OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PROFILER_STACK_SAMPLING_PROFILER_H_ | 5 #ifndef BASE_PROFILER_STACK_SAMPLING_PROFILER_H_ |
6 #define BASE_PROFILER_STACK_SAMPLING_PROFILER_H_ | 6 #define BASE_PROFILER_STACK_SAMPLING_PROFILER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/base_export.h" | 13 #include "base/base_export.h" |
12 #include "base/callback.h" | 14 #include "base/callback.h" |
13 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
15 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
16 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
17 #include "base/threading/platform_thread.h" | 20 #include "base/threading/platform_thread.h" |
18 #include "base/time/time.h" | 21 #include "base/time/time.h" |
19 | 22 |
20 namespace base { | 23 namespace base { |
21 | 24 |
22 class NativeStackSampler; | 25 class NativeStackSampler; |
23 class NativeStackSamplerTestDelegate; | 26 class NativeStackSamplerTestDelegate; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // The metrics provider code wants to put Samples in a map and compare them, | 249 // The metrics provider code wants to put Samples in a map and compare them, |
247 // which requires us to define a few operators. | 250 // which requires us to define a few operators. |
248 BASE_EXPORT bool operator==(const StackSamplingProfiler::Frame& a, | 251 BASE_EXPORT bool operator==(const StackSamplingProfiler::Frame& a, |
249 const StackSamplingProfiler::Frame& b); | 252 const StackSamplingProfiler::Frame& b); |
250 BASE_EXPORT bool operator<(const StackSamplingProfiler::Frame& a, | 253 BASE_EXPORT bool operator<(const StackSamplingProfiler::Frame& a, |
251 const StackSamplingProfiler::Frame& b); | 254 const StackSamplingProfiler::Frame& b); |
252 | 255 |
253 } // namespace base | 256 } // namespace base |
254 | 257 |
255 #endif // BASE_PROFILER_STACK_SAMPLING_PROFILER_H_ | 258 #endif // BASE_PROFILER_STACK_SAMPLING_PROFILER_H_ |
OLD | NEW |