trace_processor: fix crash with instants table when adding args
Change-Id: I73ed30f886e943e4ad14439fea9dbdbdcd70deba
diff --git a/src/trace_processor/trace_storage.h b/src/trace_processor/trace_storage.h
index 7116f37..8f8e79a 100644
--- a/src/trace_processor/trace_storage.h
+++ b/src/trace_processor/trace_storage.h
@@ -409,9 +409,12 @@
values_.emplace_back(value);
refs_.emplace_back(ref);
types_.emplace_back(type);
+ arg_set_ids_.emplace_back(kInvalidArgSetId);
return static_cast<uint32_t>(instant_count() - 1);
}
+ void set_arg_set_id(uint32_t row, ArgSetId id) { arg_set_ids_[row] = id; }
+
size_t instant_count() const { return timestamps_.size(); }
const std::deque<int64_t>& timestamps() const { return timestamps_; }
@@ -424,12 +427,15 @@
const std::deque<RefType>& types() const { return types_; }
+ const std::deque<ArgSetId>& arg_set_ids() const { return arg_set_ids_; }
+
private:
std::deque<int64_t> timestamps_;
std::deque<StringId> name_ids_;
std::deque<double> values_;
std::deque<int64_t> refs_;
std::deque<RefType> types_;
+ std::deque<ArgSetId> arg_set_ids_;
};
class RawEvents {