OLD | NEW |
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_CPU_PROFILER_INL_H_ | 5 #ifndef V8_CPU_PROFILER_INL_H_ |
6 #define V8_CPU_PROFILER_INL_H_ | 6 #define V8_CPU_PROFILER_INL_H_ |
7 | 7 |
8 #include "cpu-profiler.h" | 8 #include "src/cpu-profiler.h" |
9 | 9 |
10 #include <new> | 10 #include <new> |
11 #include "circular-queue-inl.h" | 11 #include "src/circular-queue-inl.h" |
12 #include "profile-generator-inl.h" | 12 #include "src/profile-generator-inl.h" |
13 #include "unbound-queue-inl.h" | 13 #include "src/unbound-queue-inl.h" |
14 | 14 |
15 namespace v8 { | 15 namespace v8 { |
16 namespace internal { | 16 namespace internal { |
17 | 17 |
18 void CodeCreateEventRecord::UpdateCodeMap(CodeMap* code_map) { | 18 void CodeCreateEventRecord::UpdateCodeMap(CodeMap* code_map) { |
19 code_map->AddCode(start, entry, size); | 19 code_map->AddCode(start, entry, size); |
20 if (shared != NULL) { | 20 if (shared != NULL) { |
21 entry->set_shared_id(code_map->GetSharedId(shared)); | 21 entry->set_shared_id(code_map->GetSharedId(shared)); |
22 } | 22 } |
23 } | 23 } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 72 } |
73 | 73 |
74 | 74 |
75 void ProfilerEventsProcessor::FinishTickSample() { | 75 void ProfilerEventsProcessor::FinishTickSample() { |
76 ticks_buffer_.FinishEnqueue(); | 76 ticks_buffer_.FinishEnqueue(); |
77 } | 77 } |
78 | 78 |
79 } } // namespace v8::internal | 79 } } // namespace v8::internal |
80 | 80 |
81 #endif // V8_CPU_PROFILER_INL_H_ | 81 #endif // V8_CPU_PROFILER_INL_H_ |
OLD | NEW |