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_CPU_PROFILER_H_ | 5 #ifndef V8_CPU_PROFILER_H_ |
6 #define V8_CPU_PROFILER_H_ | 6 #define V8_CPU_PROFILER_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/base/atomicops.h" | 9 #include "src/base/atomicops.h" |
10 #include "src/base/platform/time.h" | 10 #include "src/base/platform/time.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 INLINE(void UpdateCodeMap(CodeMap* code_map)); | 74 INLINE(void UpdateCodeMap(CodeMap* code_map)); |
75 }; | 75 }; |
76 | 76 |
77 | 77 |
78 class CodeDeoptEventRecord : public CodeEventRecord { | 78 class CodeDeoptEventRecord : public CodeEventRecord { |
79 public: | 79 public: |
80 Address start; | 80 Address start; |
81 const char* deopt_reason; | 81 const char* deopt_reason; |
82 SourcePosition position; | 82 SourcePosition position; |
| 83 int pc_offset; |
83 | 84 |
84 INLINE(void UpdateCodeMap(CodeMap* code_map)); | 85 INLINE(void UpdateCodeMap(CodeMap* code_map)); |
85 }; | 86 }; |
86 | 87 |
87 | 88 |
88 class ReportBuiltinEventRecord : public CodeEventRecord { | 89 class ReportBuiltinEventRecord : public CodeEventRecord { |
89 public: | 90 public: |
90 Address start; | 91 Address start; |
91 Builtins::Name builtin_id; | 92 Builtins::Name builtin_id; |
92 | 93 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 bool saved_is_logging_; | 267 bool saved_is_logging_; |
267 bool is_profiling_; | 268 bool is_profiling_; |
268 | 269 |
269 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); | 270 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); |
270 }; | 271 }; |
271 | 272 |
272 } } // namespace v8::internal | 273 } } // namespace v8::internal |
273 | 274 |
274 | 275 |
275 #endif // V8_CPU_PROFILER_H_ | 276 #endif // V8_CPU_PROFILER_H_ |
OLD | NEW |