From d1206d48daed165bbfb76be18a8e0c8f37828769 Mon Sep 17 00:00:00 2001 From: Lalit Maganti Date: Fri, 24 Jan 2025 19:21:52 +0000 Subject: [PATCH] tp: bump maximum track depth to 100 This might break the UI but some users internally want this. There's no problem from the TP side Change-Id: I5417a28007ac290df031d5404755b89d8cec4633 --- src/trace_processor/importers/proto/track_event_tracker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trace_processor/importers/proto/track_event_tracker.cc b/src/trace_processor/importers/proto/track_event_tracker.cc index 3a5c213169..a24009ed28 100644 --- a/src/trace_processor/importers/proto/track_event_tracker.cc +++ b/src/trace_processor/importers/proto/track_event_tracker.cc @@ -542,7 +542,7 @@ void TrackEventTracker::AddTrackArgs( bool TrackEventTracker::IsTrackHierarchyValid(uint64_t uuid) { // Do a basic tree walking algorithm to find if there are duplicate ids or // the path to the root is longer than kMaxAncestors. - static constexpr size_t kMaxAncestors = 10; + static constexpr size_t kMaxAncestors = 100; std::array seen; uint64_t current_uuid = uuid; for (uint32_t i = 0; i < kMaxAncestors; ++i) {