@@ -593,8 +593,6 @@ class FunctionDeserializationCluster : public DeserializationCluster {
593593 }
594594
595595 void PostLoad (const Array& refs, Snapshot::Kind kind, Zone* zone) {
596- TIMELINE_DURATION (Thread::Current (), Isolate, " Function" );
597-
598596 if (kind == Snapshot::kFullAOT ) {
599597 Function& func = Function::Handle (zone);
600598 for (intptr_t i = start_index_; i < stop_index_; i++) {
@@ -1006,8 +1004,6 @@ class FieldDeserializationCluster : public DeserializationCluster {
10061004 }
10071005
10081006 void PostLoad (const Array& refs, Snapshot::Kind kind, Zone* zone) {
1009- TIMELINE_DURATION (Thread::Current (), Isolate, " Field" );
1010-
10111007 Field& field = Field::Handle (zone);
10121008 if (!Isolate::Current ()->use_field_guards ()) {
10131009 for (intptr_t i = start_index_; i < stop_index_; i++) {
@@ -1319,8 +1315,6 @@ class KernelProgramInfoDeserializationCluster : public DeserializationCluster {
13191315 }
13201316
13211317 void PostLoad (const Array& refs, Snapshot::Kind kind, Zone* zone) {
1322- TIMELINE_DURATION (Thread::Current (), Isolate, " KernelProgramInfo" );
1323-
13241318 Array& array = Array::Handle (zone);
13251319 KernelProgramInfo& info = KernelProgramInfo::Handle (zone);
13261320 for (intptr_t id = start_index_; id < stop_index_; id++) {
@@ -2332,8 +2326,6 @@ class MegamorphicCacheDeserializationCluster : public DeserializationCluster {
23322326 }
23332327
23342328 void PostLoad (const Array& refs, Snapshot::Kind kind, Zone* zone) {
2335- TIMELINE_DURATION (Thread::Current (), Isolate, " MegamorphicCache" );
2336-
23372329#if defined(DART_PRECOMPILED_RUNTIME)
23382330 if (FLAG_use_bare_instructions) {
23392331 // By default, every megamorphic call site will load the target
@@ -2869,8 +2861,6 @@ class TypeDeserializationCluster : public DeserializationCluster {
28692861 }
28702862
28712863 void PostLoad (const Array& refs, Snapshot::Kind kind, Zone* zone) {
2872- TIMELINE_DURATION (Thread::Current (), Isolate, " Type" );
2873-
28742864 Type& type = Type::Handle (zone);
28752865 Code& stub = Code::Handle (zone);
28762866
@@ -2969,8 +2959,6 @@ class TypeRefDeserializationCluster : public DeserializationCluster {
29692959 }
29702960
29712961 void PostLoad (const Array& refs, Snapshot::Kind kind, Zone* zone) {
2972- TIMELINE_DURATION (Thread::Current (), Isolate, " TypeRef" );
2973-
29742962 TypeRef& type_ref = TypeRef::Handle (zone);
29752963 Code& stub = Code::Handle (zone);
29762964
@@ -3065,8 +3053,6 @@ class TypeParameterDeserializationCluster : public DeserializationCluster {
30653053 }
30663054
30673055 void PostLoad (const Array& refs, Snapshot::Kind kind, Zone* zone) {
3068- TIMELINE_DURATION (Thread::Current (), Isolate, " TypeParameter" );
3069-
30703056 TypeParameter& type_param = TypeParameter::Handle (zone);
30713057 Code& stub = Code::Handle (zone);
30723058
@@ -3228,8 +3214,6 @@ class MintDeserializationCluster : public DeserializationCluster {
32283214 void ReadFill (Deserializer* d) {}
32293215
32303216 void PostLoad (const Array& refs, Snapshot::Kind kind, Zone* zone) {
3231- TIMELINE_DURATION (Thread::Current (), Isolate, " Mint" );
3232-
32333217 const Class& mint_cls =
32343218 Class::Handle (zone, Isolate::Current ()->object_store ()->mint_class ());
32353219 mint_cls.set_constants (Object::empty_array ());
@@ -5101,30 +5085,24 @@ void Deserializer::Deserialize() {
51015085 num_base_objects_, next_ref_index_ - 1 );
51025086 }
51035087
5104- {
5105- TIMELINE_DURATION (thread (), Isolate, " ReadAlloc" );
5106- for (intptr_t i = 0 ; i < num_clusters_; i++) {
5107- clusters_[i] = ReadCluster ();
5108- clusters_[i]->ReadAlloc (this );
5088+ for (intptr_t i = 0 ; i < num_clusters_; i++) {
5089+ clusters_[i] = ReadCluster ();
5090+ clusters_[i]->ReadAlloc (this );
51095091#if defined(DEBUG)
5110- intptr_t serializers_next_ref_index_ = Read<int32_t >();
5111- ASSERT (serializers_next_ref_index_ == next_ref_index_);
5092+ intptr_t serializers_next_ref_index_ = Read<int32_t >();
5093+ ASSERT (serializers_next_ref_index_ == next_ref_index_);
51125094#endif
5113- }
51145095 }
51155096
51165097 // We should have completely filled the ref array.
51175098 ASSERT ((next_ref_index_ - 1 ) == num_objects_);
51185099
5119- {
5120- TIMELINE_DURATION (thread (), Isolate, " ReadFill" );
5121- for (intptr_t i = 0 ; i < num_clusters_; i++) {
5122- clusters_[i]->ReadFill (this );
5100+ for (intptr_t i = 0 ; i < num_clusters_; i++) {
5101+ clusters_[i]->ReadFill (this );
51235102#if defined(DEBUG)
5124- int32_t section_marker = Read<int32_t >();
5125- ASSERT (section_marker == kSectionMarker );
5103+ int32_t section_marker = Read<int32_t >();
5104+ ASSERT (section_marker == kSectionMarker );
51265105#endif
5127- }
51285106 }
51295107}
51305108
@@ -5233,11 +5211,8 @@ void Deserializer::ReadVMSnapshot() {
52335211 isolate ()->ValidateClassTable ();
52345212#endif
52355213
5236- {
5237- TIMELINE_DURATION (thread (), Isolate, " PostLoad" );
5238- for (intptr_t i = 0 ; i < num_clusters_; i++) {
5239- clusters_[i]->PostLoad (refs, kind_, zone_);
5240- }
5214+ for (intptr_t i = 0 ; i < num_clusters_; i++) {
5215+ clusters_[i]->PostLoad (refs, kind_, zone_);
52415216 }
52425217}
52435218
@@ -5282,11 +5257,8 @@ void Deserializer::ReadIsolateSnapshot(ObjectStore* object_store) {
52825257 isolate->heap ()->Verify ();
52835258#endif
52845259
5285- {
5286- TIMELINE_DURATION (thread (), Isolate, " PostLoad" );
5287- for (intptr_t i = 0 ; i < num_clusters_; i++) {
5288- clusters_[i]->PostLoad (refs, kind_, zone_);
5289- }
5260+ for (intptr_t i = 0 ; i < num_clusters_; i++) {
5261+ clusters_[i]->PostLoad (refs, kind_, zone_);
52905262 }
52915263
52925264 // Setup native resolver for bootstrap impl.
0 commit comments