tp: implement async track set tracker
This CL implements the async track set tracker described in
go/perfetto-tp-scaling-async-slices.
Currently, only Android async slices have been migrated but in the
future, GPU slices will also use this tracker and Chrome *may* be
migrated over as well depending on the result of experiments.
Doc: go/perfetto-tp-scaling-async-slices
Bug: 169088987
Change-Id: Idf9fcc05aa55c3e2fb7ef4b6d80a51166da238f4
diff --git a/src/trace_processor/export_json_unittest.cc b/src/trace_processor/export_json_unittest.cc
index 1efcb87..88b9451 100644
--- a/src/trace_processor/export_json_unittest.cc
+++ b/src/trace_processor/export_json_unittest.cc
@@ -227,9 +227,8 @@
}
TEST_F(ExportJsonTest, SystemEventsIgnored) {
- constexpr int64_t kCookie = 22;
- TrackId track = context_.track_tracker->InternAndroidAsyncTrack(
- /*name=*/kNullStringId, /*upid=*/0, kCookie);
+ TrackId track = context_.track_tracker->CreateAndroidAsyncTrack(
+ /*name=*/kNullStringId, /*upid=*/0);
context_.args_tracker->Flush(); // Flush track args.
// System events have no category.