OLD | NEW |
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 "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/atomic-utils.h" | 9 #include "src/atomic-utils.h" |
10 #include "src/base/atomicops.h" | 10 #include "src/base/atomicops.h" |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 ProfileGenerator* generator() const { return generator_; } | 251 ProfileGenerator* generator() const { return generator_; } |
252 ProfilerEventsProcessor* processor() const { return processor_; } | 252 ProfilerEventsProcessor* processor() const { return processor_; } |
253 Isolate* isolate() const { return isolate_; } | 253 Isolate* isolate() const { return isolate_; } |
254 | 254 |
255 private: | 255 private: |
256 void StartProcessorIfNotStarted(); | 256 void StartProcessorIfNotStarted(); |
257 void StopProcessorIfLastProfile(const char* title); | 257 void StopProcessorIfLastProfile(const char* title); |
258 void StopProcessor(); | 258 void StopProcessor(); |
259 void ResetProfiles(); | 259 void ResetProfiles(); |
260 void LogBuiltins(); | 260 void LogBuiltins(); |
| 261 void RecordInliningInfo(CodeEntry* entry, AbstractCode* abstract_code); |
261 | 262 |
262 Isolate* isolate_; | 263 Isolate* isolate_; |
263 base::TimeDelta sampling_interval_; | 264 base::TimeDelta sampling_interval_; |
264 CpuProfilesCollection* profiles_; | 265 CpuProfilesCollection* profiles_; |
265 ProfileGenerator* generator_; | 266 ProfileGenerator* generator_; |
266 ProfilerEventsProcessor* processor_; | 267 ProfilerEventsProcessor* processor_; |
267 bool saved_is_logging_; | 268 bool saved_is_logging_; |
268 bool is_profiling_; | 269 bool is_profiling_; |
269 | 270 |
270 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); | 271 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); |
271 }; | 272 }; |
272 | 273 |
273 } // namespace internal | 274 } // namespace internal |
274 } // namespace v8 | 275 } // namespace v8 |
275 | 276 |
276 | 277 |
277 #endif // V8_PROFILER_CPU_PROFILER_H_ | 278 #endif // V8_PROFILER_CPU_PROFILER_H_ |
OLD | NEW |