OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project 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 V8_PROFILER_CPU_PROFILER_H_ | 5 #ifndef V8_PROFILER_CPU_PROFILER_H_ |
6 #define V8_PROFILER_CPU_PROFILER_H_ | 6 #define V8_PROFILER_CPU_PROFILER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 namespace v8 { | 22 namespace v8 { |
23 namespace internal { | 23 namespace internal { |
24 | 24 |
25 // Forward declarations. | 25 // Forward declarations. |
26 class CodeEntry; | 26 class CodeEntry; |
27 class CodeMap; | 27 class CodeMap; |
28 class CpuProfile; | 28 class CpuProfile; |
29 class CpuProfilesCollection; | 29 class CpuProfilesCollection; |
30 class ProfileGenerator; | 30 class ProfileGenerator; |
| 31 struct TickSample; |
31 | 32 |
32 #define CODE_EVENTS_TYPE_LIST(V) \ | 33 #define CODE_EVENTS_TYPE_LIST(V) \ |
33 V(CODE_CREATION, CodeCreateEventRecord) \ | 34 V(CODE_CREATION, CodeCreateEventRecord) \ |
34 V(CODE_MOVE, CodeMoveEventRecord) \ | 35 V(CODE_MOVE, CodeMoveEventRecord) \ |
35 V(CODE_DISABLE_OPT, CodeDisableOptEventRecord) \ | 36 V(CODE_DISABLE_OPT, CodeDisableOptEventRecord) \ |
36 V(CODE_DEOPT, CodeDeoptEventRecord) \ | 37 V(CODE_DEOPT, CodeDeoptEventRecord) \ |
37 V(REPORT_BUILTIN, ReportBuiltinEventRecord) | 38 V(REPORT_BUILTIN, ReportBuiltinEventRecord) |
38 | 39 |
39 | 40 |
40 class CodeEventRecord { | 41 class CodeEventRecord { |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 bool is_profiling_; | 236 bool is_profiling_; |
236 | 237 |
237 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); | 238 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); |
238 }; | 239 }; |
239 | 240 |
240 } // namespace internal | 241 } // namespace internal |
241 } // namespace v8 | 242 } // namespace v8 |
242 | 243 |
243 | 244 |
244 #endif // V8_PROFILER_CPU_PROFILER_H_ | 245 #endif // V8_PROFILER_CPU_PROFILER_H_ |
OLD | NEW |