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

Unified Diff: src/compiler.cc

Issue 1661883003: [counters] adding more counters and log-events (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/counters.h » ('j') | src/deoptimizer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 7fbbfb17ff5daf7b809e94144a3b35a3f45ba633..615c9a38dd4c8c826f5ce0928cb5586a90873583 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -899,6 +899,7 @@ bool Compiler::ParseAndAnalyze(ParseInfo* info) {
static bool GetOptimizedCodeNow(CompilationInfo* info) {
Isolate* isolate = info->isolate();
CanonicalHandleScope canonical(isolate);
+ TimerEventScope<TimerEventOptimizeCode> optimizeCodeTimer(isolate);
Michael Starzinger 2016/02/03 15:36:26 nit: s/optimizeCodeTimer/optimize_code_timer/
Camillo Bruni 2016/02/04 17:48:33 arg, I fall back to easily to camelCase when progr
if (!Compiler::ParseAndAnalyze(info->parse_info())) return false;
@@ -928,6 +929,7 @@ static bool GetOptimizedCodeNow(CompilationInfo* info) {
static bool GetOptimizedCodeLater(CompilationInfo* info) {
Isolate* isolate = info->isolate();
CanonicalHandleScope canonical(isolate);
+ TimerEventScope<TimerEventOptimizeCode> optimizeCodeTimer(isolate);
Michael Starzinger 2016/02/03 15:36:26 nit: s/optimizeCodeTimer/optimize_code_timer/
if (!isolate->optimizing_compile_dispatcher()->IsQueueAvailable()) {
if (FLAG_trace_concurrent_recompilation) {
@@ -1192,6 +1194,7 @@ void Compiler::CompileForLiveEdit(Handle<Script> script) {
static Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) {
Isolate* isolate = info->isolate();
+ TimerEventScope<TimerEventCompileCode> timer(isolate);
Michael Starzinger 2016/02/03 15:36:26 This does not cover lazily compiled functions, and
PostponeInterruptsScope postpone(isolate);
DCHECK(!isolate->native_context().is_null());
ParseInfo* parse_info = info->parse_info();
« no previous file with comments | « no previous file | src/counters.h » ('j') | src/deoptimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698