Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

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

Issue 2559743002: Merged: [cpu-profiler] use new source position information for deoptimization in cpu profiler (Closed)
Patch Set: addressed comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/profiler/cpu-profiler.h ('k') | src/profiler/profile-generator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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_INL_H_ 5 #ifndef V8_PROFILER_CPU_PROFILER_INL_H_
6 #define V8_PROFILER_CPU_PROFILER_INL_H_ 6 #define V8_PROFILER_CPU_PROFILER_INL_H_
7 7
8 #include "src/profiler/cpu-profiler.h" 8 #include "src/profiler/cpu-profiler.h"
9 9
10 #include <new> 10 #include <new>
(...skipping 17 matching lines...) Expand all
28 void CodeDisableOptEventRecord::UpdateCodeMap(CodeMap* code_map) { 28 void CodeDisableOptEventRecord::UpdateCodeMap(CodeMap* code_map) {
29 CodeEntry* entry = code_map->FindEntry(start); 29 CodeEntry* entry = code_map->FindEntry(start);
30 if (entry != NULL) { 30 if (entry != NULL) {
31 entry->set_bailout_reason(bailout_reason); 31 entry->set_bailout_reason(bailout_reason);
32 } 32 }
33 } 33 }
34 34
35 35
36 void CodeDeoptEventRecord::UpdateCodeMap(CodeMap* code_map) { 36 void CodeDeoptEventRecord::UpdateCodeMap(CodeMap* code_map) {
37 CodeEntry* entry = code_map->FindEntry(start); 37 CodeEntry* entry = code_map->FindEntry(start);
38 if (entry != NULL) entry->set_deopt_info(deopt_reason, position, deopt_id); 38 if (entry != NULL) entry->set_deopt_info(deopt_reason, deopt_id);
39 } 39 }
40 40
41 41
42 void ReportBuiltinEventRecord::UpdateCodeMap(CodeMap* code_map) { 42 void ReportBuiltinEventRecord::UpdateCodeMap(CodeMap* code_map) {
43 CodeEntry* entry = code_map->FindEntry(start); 43 CodeEntry* entry = code_map->FindEntry(start);
44 if (!entry) { 44 if (!entry) {
45 // Code objects for builtins should already have been added to the map but 45 // Code objects for builtins should already have been added to the map but
46 // some of them have been filtered out by CpuProfiler. 46 // some of them have been filtered out by CpuProfiler.
47 return; 47 return;
48 } 48 }
(...skipping 11 matching lines...) Expand all
60 60
61 61
62 void ProfilerEventsProcessor::FinishTickSample() { 62 void ProfilerEventsProcessor::FinishTickSample() {
63 ticks_buffer_.FinishEnqueue(); 63 ticks_buffer_.FinishEnqueue();
64 } 64 }
65 65
66 } // namespace internal 66 } // namespace internal
67 } // namespace v8 67 } // namespace v8
68 68
69 #endif // V8_PROFILER_CPU_PROFILER_INL_H_ 69 #endif // V8_PROFILER_CPU_PROFILER_INL_H_
OLDNEW
« no previous file with comments | « src/profiler/cpu-profiler.h ('k') | src/profiler/profile-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698