diff --git a/runtime/vm/timeline.cc b/runtime/vm/timeline.cc index 929de7fc4a2..669a1a39193 100644 --- a/runtime/vm/timeline.cc +++ b/runtime/vm/timeline.cc @@ -519,19 +519,15 @@ TimelineEvent::~TimelineEvent() { } void TimelineEvent::Reset() { - timestamp0_ = 0; - timestamp1_or_id_ = 0; - flow_id_count_ = 0; - flow_ids_.reset(); - state_ = 0; if (owns_label() && label_ != nullptr) { free(const_cast(label_)); } - label_ = nullptr; - stream_ = nullptr; + state_ = 0; thread_ = OSThread::kInvalidThreadId; - isolate_id_ = ILLEGAL_ISOLATE_ID; - isolate_group_id_ = ILLEGAL_ISOLATE_GROUP_ID; + isolate_id_ = ILLEGAL_PORT; + isolate_group_id_ = 0; + stream_ = nullptr; + label_ = nullptr; arguments_.Free(); set_event_type(kNone); set_pre_serialized_args(false);