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

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

Issue 12040075: Log event start and event end separately when using --log-timer-events. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « src/log.cc ('k') | tools/plot-timer-events » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/vm-state-inl.h
diff --git a/src/vm-state-inl.h b/src/vm-state-inl.h
index bc481605fbf774034b45cb7ad4015b86e6ac1652..fae68ebeea4e8f13613b79da88f8b4fa3d77ab18 100644
--- a/src/vm-state-inl.h
+++ b/src/vm-state-inl.h
@@ -67,8 +67,8 @@ VMState::VMState(Isolate* isolate, StateTag tag)
LOG(isolate, UncheckedStringEvent("From", StateToString(previous_tag_)));
}
- if (FLAG_log_timer_events) {
- LOG(isolate, ExternalSwitch(previous_tag_, tag));
+ if (FLAG_log_timer_events && previous_tag_ != EXTERNAL && tag == EXTERNAL) {
+ LOG(isolate_, EnterExternal());
}
isolate_->SetCurrentVMState(tag);
@@ -84,8 +84,9 @@ VMState::~VMState() {
UncheckedStringEvent("To", StateToString(previous_tag_)));
}
- if (FLAG_log_timer_events) {
- LOG(isolate_, ExternalSwitch(isolate_->current_vm_state(), previous_tag_));
+ if (FLAG_log_timer_events &&
+ previous_tag_ != EXTERNAL && isolate_->current_vm_state() == EXTERNAL) {
+ LOG(isolate_, LeaveExternal());
}
isolate_->SetCurrentVMState(previous_tag_);
« no previous file with comments | « src/log.cc ('k') | tools/plot-timer-events » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698