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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // stack frame entries are filled.) This method returns a pointer to the | 159 // stack frame entries are filled.) This method returns a pointer to the |
160 // next record of the buffer. | 160 // next record of the buffer. |
161 INLINE(TickSample* TickSampleEvent()); | 161 INLINE(TickSample* TickSampleEvent()); |
162 | 162 |
163 private: | 163 private: |
164 // Called from events processing thread (Run() method.) | 164 // Called from events processing thread (Run() method.) |
165 bool ProcessCodeEvent(unsigned* dequeue_order); | 165 bool ProcessCodeEvent(unsigned* dequeue_order); |
166 bool ProcessTicks(unsigned dequeue_order); | 166 bool ProcessTicks(unsigned dequeue_order); |
167 | 167 |
168 ProfileGenerator* generator_; | 168 ProfileGenerator* generator_; |
169 CpuProfilesCollection* profiles_; | |
170 bool running_; | 169 bool running_; |
171 UnboundQueue<CodeEventsContainer> events_buffer_; | 170 UnboundQueue<CodeEventsContainer> events_buffer_; |
172 SamplingCircularQueue ticks_buffer_; | 171 SamplingCircularQueue ticks_buffer_; |
173 UnboundQueue<TickSampleEventRecord> ticks_from_vm_buffer_; | 172 UnboundQueue<TickSampleEventRecord> ticks_from_vm_buffer_; |
174 unsigned enqueue_order_; | 173 unsigned enqueue_order_; |
175 }; | 174 }; |
176 | 175 |
177 | 176 |
178 #define PROFILE(IsolateGetter, Call) \ | 177 #define PROFILE(IsolateGetter, Call) \ |
179 do { \ | 178 do { \ |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 bool is_profiling_; | 259 bool is_profiling_; |
261 | 260 |
262 private: | 261 private: |
263 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); | 262 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); |
264 }; | 263 }; |
265 | 264 |
266 } } // namespace v8::internal | 265 } } // namespace v8::internal |
267 | 266 |
268 | 267 |
269 #endif // V8_CPU_PROFILER_H_ | 268 #endif // V8_CPU_PROFILER_H_ |
OLD | NEW |