OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 UnboundQueue<CodeEventsContainer> events_buffer_; | 181 UnboundQueue<CodeEventsContainer> events_buffer_; |
182 SamplingCircularQueue ticks_buffer_; | 182 SamplingCircularQueue ticks_buffer_; |
183 UnboundQueue<TickSampleEventRecord> ticks_from_vm_buffer_; | 183 UnboundQueue<TickSampleEventRecord> ticks_from_vm_buffer_; |
184 unsigned enqueue_order_; | 184 unsigned enqueue_order_; |
185 }; | 185 }; |
186 | 186 |
187 } } // namespace v8::internal | 187 } } // namespace v8::internal |
188 | 188 |
189 | 189 |
190 #define PROFILE(isolate, Call) \ | 190 #define PROFILE(isolate, Call) \ |
191 LOG_CODE_EVENT(isolate, Call); \ | 191 LOG(isolate, Call); \ |
192 do { \ | 192 do { \ |
193 if (v8::internal::CpuProfiler::is_profiling(isolate)) { \ | 193 if (v8::internal::CpuProfiler::is_profiling(isolate)) { \ |
194 v8::internal::CpuProfiler::Call; \ | 194 v8::internal::CpuProfiler::Call; \ |
195 } \ | 195 } \ |
196 } while (false) | 196 } while (false) |
197 | 197 |
198 | 198 |
199 namespace v8 { | 199 namespace v8 { |
200 namespace internal { | 200 namespace internal { |
201 | 201 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 Atomic32 is_profiling_; | 274 Atomic32 is_profiling_; |
275 | 275 |
276 private: | 276 private: |
277 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); | 277 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); |
278 }; | 278 }; |
279 | 279 |
280 } } // namespace v8::internal | 280 } } // namespace v8::internal |
281 | 281 |
282 | 282 |
283 #endif // V8_CPU_PROFILER_H_ | 283 #endif // V8_CPU_PROFILER_H_ |
OLD | NEW |