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

Unified Diff: src/vm-state-inl.h

Issue 11428025: Include more information in --prof log. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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
Index: src/vm-state-inl.h
diff --git a/src/vm-state-inl.h b/src/vm-state-inl.h
index 97febd028340c6bf05786c70e8b8f7ed7fe3d2ed..bc481605fbf774034b45cb7ad4015b86e6ac1652 100644
--- a/src/vm-state-inl.h
+++ b/src/vm-state-inl.h
@@ -67,6 +67,10 @@ VMState::VMState(Isolate* isolate, StateTag tag)
LOG(isolate, UncheckedStringEvent("From", StateToString(previous_tag_)));
}
+ if (FLAG_log_timer_events) {
+ LOG(isolate, ExternalSwitch(previous_tag_, tag));
+ }
+
isolate_->SetCurrentVMState(tag);
}
@@ -80,6 +84,10 @@ VMState::~VMState() {
UncheckedStringEvent("To", StateToString(previous_tag_)));
}
+ if (FLAG_log_timer_events) {
+ LOG(isolate_, ExternalSwitch(isolate_->current_vm_state(), previous_tag_));
+ }
+
isolate_->SetCurrentVMState(previous_tag_);
}
« no previous file with comments | « src/log.cc ('k') | tools/plot-timer-events » ('j') | tools/plot-timer-events.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698