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

Side by Side Diff: src/optimizing-compile-dispatcher.cc

Issue 1707563002: Split the TRACE_EVENTs from the LOG/HistogramTimers/TimerEvents functionality. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « src/log-inl.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/optimizing-compile-dispatcher.h" 5 #include "src/optimizing-compile-dispatcher.h"
6 6
7 #include "src/base/atomicops.h" 7 #include "src/base/atomicops.h"
8 #include "src/full-codegen/full-codegen.h" 8 #include "src/full-codegen/full-codegen.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/tracing/trace-event.h"
10 #include "src/v8.h" 11 #include "src/v8.h"
11 12
12 namespace v8 { 13 namespace v8 {
13 namespace internal { 14 namespace internal {
14 15
15 namespace { 16 namespace {
16 17
17 void DisposeOptimizedCompileJob(OptimizedCompileJob* job, 18 void DisposeOptimizedCompileJob(OptimizedCompileJob* job,
18 bool restore_function_code) { 19 bool restore_function_code) {
19 // The recompile job is allocated in the CompilationInfo's zone. 20 // The recompile job is allocated in the CompilationInfo's zone.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // v8::Task overrides. 53 // v8::Task overrides.
53 void Run() override { 54 void Run() override {
54 DisallowHeapAllocation no_allocation; 55 DisallowHeapAllocation no_allocation;
55 DisallowHandleAllocation no_handles; 56 DisallowHandleAllocation no_handles;
56 DisallowHandleDereference no_deref; 57 DisallowHandleDereference no_deref;
57 58
58 OptimizingCompileDispatcher* dispatcher = 59 OptimizingCompileDispatcher* dispatcher =
59 isolate_->optimizing_compile_dispatcher(); 60 isolate_->optimizing_compile_dispatcher();
60 { 61 {
61 TimerEventScope<TimerEventRecompileConcurrent> timer(isolate_); 62 TimerEventScope<TimerEventRecompileConcurrent> timer(isolate_);
63 TRACE_EVENT0("v8", "V8.RecompileConcurrent");
62 64
63 if (dispatcher->recompilation_delay_ != 0) { 65 if (dispatcher->recompilation_delay_ != 0) {
64 base::OS::Sleep(base::TimeDelta::FromMilliseconds( 66 base::OS::Sleep(base::TimeDelta::FromMilliseconds(
65 dispatcher->recompilation_delay_)); 67 dispatcher->recompilation_delay_));
66 } 68 }
67 69
68 dispatcher->CompileNext(dispatcher->NextInput(true)); 70 dispatcher->CompileNext(dispatcher->NextInput(true));
69 } 71 }
70 { 72 {
71 base::LockGuard<base::Mutex> lock_guard(&dispatcher->ref_count_mutex_); 73 base::LockGuard<base::Mutex> lock_guard(&dispatcher->ref_count_mutex_);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 info->closure()->PrintName(); 351 info->closure()->PrintName();
350 PrintF(", AST id %d]\n", info->osr_ast_id().ToInt()); 352 PrintF(", AST id %d]\n", info->osr_ast_id().ToInt());
351 } 353 }
352 DisposeOptimizedCompileJob(stale, false); 354 DisposeOptimizedCompileJob(stale, false);
353 } 355 }
354 osr_buffer_[osr_buffer_cursor_] = job; 356 osr_buffer_[osr_buffer_cursor_] = job;
355 osr_buffer_cursor_ = (osr_buffer_cursor_ + 1) % osr_buffer_capacity_; 357 osr_buffer_cursor_ = (osr_buffer_cursor_ + 1) % osr_buffer_capacity_;
356 } 358 }
357 } // namespace internal 359 } // namespace internal
358 } // namespace v8 360 } // namespace v8
OLDNEW
« no previous file with comments | « src/log-inl.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698