Chromium Code Reviews

Side by Side Diff: src/profiler/cpu-profiler.h

Issue 2503393002: [cpu-profiler] use new source position information for deoptimization in cpu profiler (Closed)
Patch Set: removed CodeDeoptEvent::position Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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 65 matching lines...)
76 const char* bailout_reason; 76 const char* bailout_reason;
77 77
78 INLINE(void UpdateCodeMap(CodeMap* code_map)); 78 INLINE(void UpdateCodeMap(CodeMap* code_map));
79 }; 79 };
80 80
81 81
82 class CodeDeoptEventRecord : public CodeEventRecord { 82 class CodeDeoptEventRecord : public CodeEventRecord {
83 public: 83 public:
84 Address start; 84 Address start;
85 const char* deopt_reason; 85 const char* deopt_reason;
86 SourcePosition position;
87 int deopt_id; 86 int deopt_id;
88 void* pc; 87 void* pc;
89 int fp_to_sp_delta; 88 int fp_to_sp_delta;
90 89
91 INLINE(void UpdateCodeMap(CodeMap* code_map)); 90 INLINE(void UpdateCodeMap(CodeMap* code_map));
92 }; 91 };
93 92
94 93
95 class ReportBuiltinEventRecord : public CodeEventRecord { 94 class ReportBuiltinEventRecord : public CodeEventRecord {
96 public: 95 public:
(...skipping 134 matching lines...)
231 bool is_profiling_; 230 bool is_profiling_;
232 231
233 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); 232 DISALLOW_COPY_AND_ASSIGN(CpuProfiler);
234 }; 233 };
235 234
236 } // namespace internal 235 } // namespace internal
237 } // namespace v8 236 } // namespace v8
238 237
239 238
240 #endif // V8_PROFILER_CPU_PROFILER_H_ 239 #endif // V8_PROFILER_CPU_PROFILER_H_
OLDNEW

Powered by Google App Engine