trace_processor: migrate track table to new table macros
Context: go/perfetto-tp-refactor
Bug: 135177627
Change-Id: I4f78f76d2bd6361596b0c4eba73319c263540a64
diff --git a/src/trace_processor/trace_storage.h b/src/trace_processor/trace_storage.h
index 4c7515d..3a5455b 100644
--- a/src/trace_processor/trace_storage.h
+++ b/src/trace_processor/trace_storage.h
@@ -1172,8 +1172,8 @@
return std::make_pair(table_id, row);
}
- const Tracks& tracks() const { return tracks_; }
- Tracks* mutable_tracks() { return &tracks_; }
+ const tables::TrackTable& track_table() const { return track_table_; }
+ tables::TrackTable* mutable_track_table() { return &track_table_; }
const VirtualTracks& virtual_tracks() const { return virtual_tracks_; }
VirtualTracks* mutable_virtual_tracks() { return &virtual_tracks_; }
@@ -1308,7 +1308,7 @@
Metadata metadata_{};
// Metadata for tracks.
- Tracks tracks_;
+ tables::TrackTable track_table_{&string_pool_, nullptr};
// Metadata for virtual slice tracks.
VirtualTracks virtual_tracks_;