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

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 1173333007: Refactor some Timeline interfaces to be simpler and support streaming (Closed) Base URL: git@github.com:dart-lang/sdk.git@timeline2
Patch Set: Created 5 years, 6 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 | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deopt_instructions.cc
diff --git a/runtime/vm/deopt_instructions.cc b/runtime/vm/deopt_instructions.cc
index 211cb78e6ea475c094424bc0880754c07371dd78..326076038cdcf46b8ea4850aaf0e691ef077196d 100644
--- a/runtime/vm/deopt_instructions.cc
+++ b/runtime/vm/deopt_instructions.cc
@@ -100,9 +100,9 @@ DeoptContext::DeoptContext(const StackFrame* frame,
Isolate* isolate = Isolate::Current();
TimelineStream* compiler_stream = isolate->GetCompilerStream();
ASSERT(compiler_stream != NULL);
- timeline_event_ = compiler_stream->RecordEvent();
+ timeline_event_ = compiler_stream->StartEvent();
if (timeline_event_ != NULL) {
- timeline_event_->DurationBegin(compiler_stream, "Deoptimize");
+ timeline_event_->DurationBegin("Deoptimize");
timeline_event_->SetNumArguments(3);
}
}
@@ -158,6 +158,7 @@ DeoptContext::~DeoptContext() {
"%d",
function.deoptimization_counter());
timeline_event_->DurationEnd();
+ timeline_event_->Complete();
}
}
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698