Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: src/isolate.cc

Issue 2413243002: Introduce a CompilerDispatcherTracer and track how long jobs take (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "src/isolate.h" 5 #include "src/isolate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <fstream> // NOLINT(readability/streams) 9 #include <fstream> // NOLINT(readability/streams)
10 #include <sstream> 10 #include <sstream>
11 11
12 #include "src/ast/context-slot-cache.h" 12 #include "src/ast/context-slot-cache.h"
13 #include "src/base/hashmap.h" 13 #include "src/base/hashmap.h"
14 #include "src/base/platform/platform.h" 14 #include "src/base/platform/platform.h"
15 #include "src/base/sys-info.h" 15 #include "src/base/sys-info.h"
16 #include "src/base/utils/random-number-generator.h" 16 #include "src/base/utils/random-number-generator.h"
17 #include "src/basic-block-profiler.h" 17 #include "src/basic-block-profiler.h"
18 #include "src/bootstrapper.h" 18 #include "src/bootstrapper.h"
19 #include "src/cancelable-task.h" 19 #include "src/cancelable-task.h"
20 #include "src/codegen.h" 20 #include "src/codegen.h"
21 #include "src/compilation-cache.h" 21 #include "src/compilation-cache.h"
22 #include "src/compilation-statistics.h" 22 #include "src/compilation-statistics.h"
23 #include "src/compiler-dispatcher/compiler-dispatcher-tracer.h"
23 #include "src/compiler-dispatcher/optimizing-compile-dispatcher.h" 24 #include "src/compiler-dispatcher/optimizing-compile-dispatcher.h"
24 #include "src/crankshaft/hydrogen.h" 25 #include "src/crankshaft/hydrogen.h"
25 #include "src/debug/debug.h" 26 #include "src/debug/debug.h"
26 #include "src/deoptimizer.h" 27 #include "src/deoptimizer.h"
27 #include "src/external-reference-table.h" 28 #include "src/external-reference-table.h"
28 #include "src/frames-inl.h" 29 #include "src/frames-inl.h"
29 #include "src/ic/access-compiler-data.h" 30 #include "src/ic/access-compiler-data.h"
30 #include "src/ic/stub-cache.h" 31 #include "src/ic/stub-cache.h"
31 #include "src/interface-descriptors.h" 32 #include "src/interface-descriptors.h"
32 #include "src/interpreter/interpreter.h" 33 #include "src/interpreter/interpreter.h"
(...skipping 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2222 heap_profiler_ = NULL; 2223 heap_profiler_ = NULL;
2223 2224
2224 heap_.TearDown(); 2225 heap_.TearDown();
2225 logger_->TearDown(); 2226 logger_->TearDown();
2226 2227
2227 delete interpreter_; 2228 delete interpreter_;
2228 interpreter_ = NULL; 2229 interpreter_ = NULL;
2229 2230
2230 cancelable_task_manager()->CancelAndWait(); 2231 cancelable_task_manager()->CancelAndWait();
2231 2232
2233 delete compiler_dispatcher_tracer_;
2234 compiler_dispatcher_tracer_ = nullptr;
2235
2232 delete cpu_profiler_; 2236 delete cpu_profiler_;
2233 cpu_profiler_ = NULL; 2237 cpu_profiler_ = NULL;
2234 2238
2235 code_event_dispatcher_.reset(); 2239 code_event_dispatcher_.reset();
2236 2240
2237 delete root_index_map_; 2241 delete root_index_map_;
2238 root_index_map_ = NULL; 2242 root_index_map_ = NULL;
2239 2243
2240 ClearSerializerData(); 2244 ClearSerializerData();
2241 } 2245 }
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
2433 materialized_object_store_ = new MaterializedObjectStore(this); 2437 materialized_object_store_ = new MaterializedObjectStore(this);
2434 regexp_stack_ = new RegExpStack(); 2438 regexp_stack_ = new RegExpStack();
2435 regexp_stack_->isolate_ = this; 2439 regexp_stack_->isolate_ = this;
2436 date_cache_ = new DateCache(); 2440 date_cache_ = new DateCache();
2437 call_descriptor_data_ = 2441 call_descriptor_data_ =
2438 new CallInterfaceDescriptorData[CallDescriptors::NUMBER_OF_DESCRIPTORS]; 2442 new CallInterfaceDescriptorData[CallDescriptors::NUMBER_OF_DESCRIPTORS];
2439 access_compiler_data_ = new AccessCompilerData(); 2443 access_compiler_data_ = new AccessCompilerData();
2440 cpu_profiler_ = new CpuProfiler(this); 2444 cpu_profiler_ = new CpuProfiler(this);
2441 heap_profiler_ = new HeapProfiler(heap()); 2445 heap_profiler_ = new HeapProfiler(heap());
2442 interpreter_ = new interpreter::Interpreter(this); 2446 interpreter_ = new interpreter::Interpreter(this);
2447 compiler_dispatcher_tracer_ = new CompilerDispatcherTracer(this);
2443 2448
2444 // Enable logging before setting up the heap 2449 // Enable logging before setting up the heap
2445 logger_->SetUp(this); 2450 logger_->SetUp(this);
2446 2451
2447 // Initialize other runtime facilities 2452 // Initialize other runtime facilities
2448 #if defined(USE_SIMULATOR) 2453 #if defined(USE_SIMULATOR)
2449 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \ 2454 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \
2450 V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_S390 2455 V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_S390
2451 Simulator::Initialize(this); 2456 Simulator::Initialize(this);
2452 #endif 2457 #endif
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
3377 // Then check whether this scope intercepts. 3382 // Then check whether this scope intercepts.
3378 if ((flag & intercept_mask_)) { 3383 if ((flag & intercept_mask_)) {
3379 intercepted_flags_ |= flag; 3384 intercepted_flags_ |= flag;
3380 return true; 3385 return true;
3381 } 3386 }
3382 return false; 3387 return false;
3383 } 3388 }
3384 3389
3385 } // namespace internal 3390 } // namespace internal
3386 } // namespace v8 3391 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698