OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 CpuProfile* StopCollectingProfile(const char* title); | 276 CpuProfile* StopCollectingProfile(const char* title); |
277 CpuProfile* StopCollectingProfile(Object* security_token, String* title); | 277 CpuProfile* StopCollectingProfile(Object* security_token, String* title); |
278 void StopProcessorIfLastProfile(const char* title); | 278 void StopProcessorIfLastProfile(const char* title); |
279 | 279 |
280 CpuProfilesCollection* profiles_; | 280 CpuProfilesCollection* profiles_; |
281 unsigned next_profile_uid_; | 281 unsigned next_profile_uid_; |
282 TokenEnumerator* token_enumerator_; | 282 TokenEnumerator* token_enumerator_; |
283 ProfileGenerator* generator_; | 283 ProfileGenerator* generator_; |
284 ProfilerEventsProcessor* processor_; | 284 ProfilerEventsProcessor* processor_; |
285 int saved_logging_nesting_; | 285 int saved_logging_nesting_; |
| 286 bool need_to_stop_sampler_; |
286 Atomic32 is_profiling_; | 287 Atomic32 is_profiling_; |
287 | 288 |
288 #else | 289 #else |
289 static INLINE(bool is_profiling()) { return false; } | 290 static INLINE(bool is_profiling()) { return false; } |
290 #endif // ENABLE_LOGGING_AND_PROFILING | 291 #endif // ENABLE_LOGGING_AND_PROFILING |
291 | 292 |
292 private: | 293 private: |
293 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); | 294 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); |
294 }; | 295 }; |
295 | 296 |
296 } } // namespace v8::internal | 297 } } // namespace v8::internal |
297 | 298 |
298 | 299 |
299 #endif // V8_CPU_PROFILER_H_ | 300 #endif // V8_CPU_PROFILER_H_ |
OLD | NEW |