Skip to content

Commit b607158

Browse files
committed
Revert "trace2:data: add trace2 regions to wt-status"
This reverts commit ef2f927.
1 parent 7085285 commit b607158

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

wt-status.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -749,29 +749,16 @@ static int has_unmerged(struct wt_status *s)
749749

750750
void wt_status_collect(struct wt_status *s)
751751
{
752-
trace2_region_enter("status", "worktrees", the_repository);
753752
wt_status_collect_changes_worktree(s);
754-
trace2_region_leave("status", "worktrees", the_repository);
755-
756-
if (s->is_initial) {
757-
trace2_region_enter("status", "initial", the_repository);
753+
if (s->is_initial)
758754
wt_status_collect_changes_initial(s);
759-
trace2_region_leave("status", "initial", the_repository);
760-
} else {
761-
trace2_region_enter("status", "index", the_repository);
755+
else
762756
wt_status_collect_changes_index(s);
763-
trace2_region_leave("status", "index", the_repository);
764-
}
765-
766-
trace2_region_enter("status", "untracked", the_repository);
767757
wt_status_collect_untracked(s);
768-
trace2_region_leave("status", "untracked", the_repository);
769758

770-
trace2_region_enter("status", "committable", the_repository);
771759
wt_status_get_state(&s->state, s->branch && !strcmp(s->branch, "HEAD"));
772760
if (s->state.merge_in_progress && !has_unmerged(s))
773761
s->committable = 1;
774-
trace2_region_leave("status", "committable", the_repository);
775762
}
776763

777764
void wt_status_collect_free_buffers(struct wt_status *s)

0 commit comments

Comments
 (0)