Signed-off-by: Derrick Stolee <dstolee@xxxxxxxxxxxxx> --- commit-reach.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/commit-reach.c b/commit-reach.c index 0fc3b1ac18..0a75644653 100644 --- a/commit-reach.c +++ b/commit-reach.c @@ -563,6 +563,7 @@ int can_all_from_reach_with_flag(struct object_array *from, struct commit **list = NULL; int i; int result = 1; + uint32_t num_walked = 0; ALLOC_ARRAY(list, from->nr); for (i = 0; i < from->nr; i++) { @@ -573,6 +574,8 @@ int can_all_from_reach_with_flag(struct object_array *from, return 0; } + trace2_region_enter("can_all_from_reach_with_flag"); + QSORT(list, from->nr, compare_commits_by_gen); for (i = 0; i < from->nr; i++) { @@ -590,6 +593,8 @@ int can_all_from_reach_with_flag(struct object_array *from, continue; } + num_walked++; + for (parent = stack->item->parents; parent; parent = parent->next) { if (parent->item->object.flags & (with_flag | RESULT)) stack->item->object.flags |= RESULT; @@ -622,6 +627,9 @@ int can_all_from_reach_with_flag(struct object_array *from, clear_commit_marks(list[i], RESULT); clear_commit_marks(list[i], assign_flag); } + + trace2_data_intmax("can_all_from_reach_with_flag", "num_walked", num_walked); + trace2_region_leave("can_all_from_reach_with_flag"); return result; } -- 2.19.0.rc2