Home | History | Annotate | Download | only in src

Lines Matching defs:isolate

49 ProfilerEventsProcessor::ProfilerEventsProcessor(Isolate* isolate,
51 : Thread(isolate, "v8:ProfEvntProc"),
187 Isolate* isolate = Isolate::Current();
188 sample->state = isolate->current_vm_state();
193 for (StackTraceFrameIterator it(isolate);
279 ASSERT(Isolate::Current()->cpu_profiler() != NULL);
280 Isolate::Current()->cpu_profiler()->StartCollectingProfile(title);
285 ASSERT(Isolate::Current()->cpu_profiler() != NULL);
286 Isolate::Current()->cpu_profiler()->StartCollectingProfile(title);
292 Isolate::Current()->cpu_profiler()->StopCollectingProfile(title) : NULL;
298 Isolate::Current()->cpu_profiler()->StopCollectingProfile(
304 ASSERT(Isolate::Current()->cpu_profiler() != NULL);
306 return Isolate::Current()->cpu_profiler()->profiles_->Profiles(
312 ASSERT(Isolate::Current()->cpu_profiler() != NULL);
313 CpuProfiler* profiler = Isolate::Current()->cpu_profiler();
320 ASSERT(Isolate::Current()->cpu_profiler() != NULL);
321 CpuProfiler* profiler = Isolate::Current()->cpu_profiler();
327 TickSample* CpuProfiler::TickSampleEvent(Isolate* isolate) {
328 if (CpuProfiler::is_profiling(isolate)) {
329 return isolate->cpu_profiler()->processor_->TickSampleEvent();
337 Isolate* isolate = Isolate::Current();
338 ASSERT(isolate->cpu_profiler() != NULL);
340 isolate->cpu_profiler()->StopProcessor();
341 isolate->cpu_profiler()->ResetProfiles();
346 ASSERT(Isolate::Current()->cpu_profiler() != NULL);
347 Isolate::Current()->cpu_profiler()->profiles_->RemoveProfile(profile);
353 ASSERT(Isolate::Current()->cpu_profiler() != NULL);
354 return Isolate::Current()->cpu_profiler()->profiles_->HasDetachedProfiles();
359 Isolate::Current()->cpu_profiler()->processor_->CallbackCreateEvent(
366 Isolate::Current()->cpu_profiler()->processor_->CodeCreateEvent(
373 Isolate* isolate = Isolate::Current();
374 isolate->cpu_profiler()->processor_->CodeCreateEvent(
377 isolate->heap()->empty_string(),
389 Isolate* isolate = Isolate::Current();
390 isolate->cpu_profiler()->processor_->CodeCreateEvent(
393 isolate->heap()->empty_string(),
405 Isolate::Current()->cpu_profiler()->processor_->CodeCreateEvent(
418 Isolate::Current()->cpu_profiler()->processor_->CodeCreateEvent(
427 Isolate::Current()->cpu_profiler()->processor_->CodeMoveEvent(from, to);
432 Isolate::Current()->cpu_profiler()->processor_->CodeDeleteEvent(from);
437 CpuProfiler* profiler = Isolate::Current()->cpu_profiler();
443 Isolate::Current()->cpu_profiler()->processor_->CallbackCreateEvent(
449 Isolate::Current()->cpu_profiler()->processor_->RegExpCodeCreateEvent(
459 Isolate::Current()->cpu_profiler()->processor_->CallbackCreateEvent(
501 Isolate* isolate = Isolate::Current();
504 saved_logging_nesting_ = isolate->logger()->logging_nesting_;
505 isolate->logger()->logging_nesting_ = 0;
507 processor_ = new ProfilerEventsProcessor(isolate, generator_);
511 if (isolate->heap()->HasBeenSetup()) {
515 isolate->logger()->LogCodeObjects();
518 isolate->logger()->LogCompiledFunctions();
519 isolate->logger()->LogAccessorCallbacks();
522 Sampler* sampler = reinterpret_cast<Sampler*>(isolate->logger()->ticker_);
562 Logger* logger = Isolate::Current()->logger();
588 Isolate* isolate = Isolate::Current();
589 if (isolate->cpu_profiler() == NULL) {
590 isolate->set_cpu_profiler(new CpuProfiler());
598 Isolate* isolate = Isolate::Current();
599 if (isolate->cpu_profiler() != NULL) {
600 delete isolate->cpu_profiler();
602 isolate->set_cpu_profiler(NULL);