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

Unified Diff: runtime/vm/object.cc

Issue 1294023009: Switch to a VM wide timeline recorder (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 73cd49cbcbf420c9fc1d93679fb659193017f27c..f8811398b391c4999c882204a0b9badae84b419d 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -989,6 +989,9 @@ void Object::RegisterPrivateClass(const Class& cls,
RawError* Object::Init(Isolate* isolate) {
TIMERSCOPE(isolate, time_bootstrap);
+ TimelineDurationScope tds(isolate,
+ isolate->GetIsolateStream(),
+ "Object::Init");
#if defined(DART_NO_SNAPSHOT)
// Object::Init version when we are running in a version of dart that does
« runtime/vm/dart.cc ('K') | « runtime/vm/json_stream.cc ('k') | runtime/vm/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698