Skip to content

Commit

Permalink
tp: bump maximum track depth to 100
Browse files Browse the repository at this point in the history
This might break the UI but some users internally want this. There's no
problem from the TP side

Change-Id: I5417a28007ac290df031d5404755b89d8cec4633
  • Loading branch information
LalitMaganti committed Jan 24, 2025
1 parent 690bd9d commit d1206d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trace_processor/importers/proto/track_event_tracker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint64_t, kMaxAncestors> seen;
uint64_t current_uuid = uuid;
for (uint32_t i = 0; i < kMaxAncestors; ++i) {
Expand Down

0 comments on commit d1206d4

Please sign in to comment.