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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 private: | 261 private: |
262 void StartProcessorIfNotStarted(); | 262 void StartProcessorIfNotStarted(); |
263 void StopProcessorIfLastProfile(const char* title); | 263 void StopProcessorIfLastProfile(const char* title); |
264 void StopProcessor(); | 264 void StopProcessor(); |
265 void ResetProfiles(); | 265 void ResetProfiles(); |
266 void LogBuiltins(); | 266 void LogBuiltins(); |
267 | 267 |
268 Isolate* isolate_; | 268 Isolate* isolate_; |
269 TimeDelta sampling_interval_; | 269 TimeDelta sampling_interval_; |
270 CpuProfilesCollection* profiles_; | 270 CpuProfilesCollection* profiles_; |
271 unsigned next_profile_uid_; | |
272 ProfileGenerator* generator_; | 271 ProfileGenerator* generator_; |
273 ProfilerEventsProcessor* processor_; | 272 ProfilerEventsProcessor* processor_; |
274 bool saved_is_logging_; | 273 bool saved_is_logging_; |
275 bool is_profiling_; | 274 bool is_profiling_; |
276 | 275 |
277 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); | 276 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); |
278 }; | 277 }; |
279 | 278 |
280 } } // namespace v8::internal | 279 } } // namespace v8::internal |
281 | 280 |
282 | 281 |
283 #endif // V8_CPU_PROFILER_H_ | 282 #endif // V8_CPU_PROFILER_H_ |
OLD | NEW |