@@ -199,7 +199,7 @@ char* Dart::Init(const uint8_t* vm_isolate_snapshot,
199199 Zone::Init ();
200200#if defined(SUPPORT_TIMELINE)
201201 Timeline::Init ();
202- TimelineDurationScope tds (Timeline::GetVMStream (), " Dart::Init" );
202+ TimelineBeginEndScope tbes (Timeline::GetVMStream (), " Dart::Init" );
203203#endif
204204 Isolate::InitVM ();
205205 IsolateGroup::Init ();
@@ -263,7 +263,7 @@ char* Dart::Init(const uint8_t* vm_isolate_snapshot,
263263 SubtypeTestCache::Init ();
264264 if (vm_isolate_snapshot != NULL ) {
265265#if defined(SUPPORT_TIMELINE)
266- TimelineDurationScope tds (Timeline::GetVMStream (), " ReadVMSnapshot" );
266+ TimelineBeginEndScope tbes (Timeline::GetVMStream (), " ReadVMSnapshot" );
267267#endif
268268 ASSERT (snapshot != nullptr );
269269 vm_snapshot_kind_ = snapshot->kind ();
@@ -307,10 +307,10 @@ char* Dart::Init(const uint8_t* vm_isolate_snapshot,
307307
308308 Object::FinishInit (vm_isolate_);
309309#if defined(SUPPORT_TIMELINE)
310- if (tds .enabled ()) {
311- tds .SetNumArguments (2 );
312- tds .FormatArgument (0 , " snapshotSize" , " %" Pd, snapshot->length ());
313- tds .FormatArgument (
310+ if (tbes .enabled ()) {
311+ tbes .SetNumArguments (2 );
312+ tbes .FormatArgument (0 , " snapshotSize" , " %" Pd, snapshot->length ());
313+ tbes .FormatArgument (
314314 1 , " heapSize" , " %" Pd64,
315315 vm_isolate_->heap ()->UsedInWords (Heap::kOld ) * kWordSize );
316316 }
@@ -356,7 +356,7 @@ char* Dart::Init(const uint8_t* vm_isolate_snapshot,
356356#endif
357357 {
358358#if defined(SUPPORT_TIMELINE)
359- TimelineDurationScope tds (Timeline::GetVMStream (), " FinalizeVMIsolate" );
359+ TimelineBeginEndScope tbes (Timeline::GetVMStream (), " FinalizeVMIsolate" );
360360#endif
361361 Object::FinalizeVMIsolate (vm_isolate_);
362362 }
@@ -644,10 +644,10 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_data,
644644 Thread* T = Thread::Current ();
645645 Isolate* I = T->isolate ();
646646#if defined(SUPPORT_TIMELINE)
647- TimelineDurationScope tds (T, Timeline::GetIsolateStream (),
648- " InitializeIsolate" );
649- tds .SetNumArguments (1 );
650- tds .CopyArgument (0 , " isolateName" , I->name ());
647+ TimelineBeginEndScope tbes (T, Timeline::GetIsolateStream (),
648+ " InitializeIsolate" );
649+ tbes .SetNumArguments (1 );
650+ tbes .CopyArgument (0 , " isolateName" , I->name ());
651651#endif
652652 ASSERT (I != NULL );
653653 StackZone zone (T);
@@ -662,8 +662,8 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_data,
662662 if ((snapshot_data != NULL ) && kernel_buffer == NULL ) {
663663 // Read the snapshot and setup the initial state.
664664#if defined(SUPPORT_TIMELINE)
665- TimelineDurationScope tds (T, Timeline::GetIsolateStream (),
666- " ReadIsolateSnapshot" );
665+ TimelineBeginEndScope tbes (T, Timeline::GetIsolateStream (),
666+ " ReadIsolateSnapshot" );
667667#endif
668668 // TODO(turnidge): Remove once length is not part of the snapshot.
669669 const Snapshot* snapshot = Snapshot::SetupFromBuffer (snapshot_data);
@@ -690,11 +690,11 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_data,
690690 ReversePcLookupCache::BuildAndAttachToIsolate (I);
691691
692692#if defined(SUPPORT_TIMELINE)
693- if (tds .enabled ()) {
694- tds .SetNumArguments (2 );
695- tds .FormatArgument (0 , " snapshotSize" , " %" Pd, snapshot->length ());
696- tds .FormatArgument (1 , " heapSize" , " %" Pd64,
697- I->heap ()->UsedInWords (Heap::kOld ) * kWordSize );
693+ if (tbes .enabled ()) {
694+ tbes .SetNumArguments (2 );
695+ tbes .FormatArgument (0 , " snapshotSize" , " %" Pd, snapshot->length ());
696+ tbes .FormatArgument (1 , " heapSize" , " %" Pd64,
697+ I->heap ()->UsedInWords (Heap::kOld ) * kWordSize );
698698 }
699699#endif // !defined(PRODUCT)
700700 if (FLAG_trace_isolates) {
0 commit comments