Skip to content

Commit

Permalink
trace2:data: add trace2 data/region around status printing
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Hostetler <[email protected]>
  • Loading branch information
jeffhostetler committed Jan 8, 2019
1 parent 7e4387a commit d9cbade
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wt-status.c
Original file line number Diff line number Diff line change
Expand Up @@ -2317,6 +2317,12 @@ static void wt_porcelain_v2_print(struct wt_status *s)

void wt_status_print(struct wt_status *s)
{
trace2_data_intmax("status", the_repository, "count/changed", s->change.nr);
trace2_data_intmax("status", the_repository, "count/untracked", s->untracked.nr);
trace2_data_intmax("status", the_repository, "count/ignored", s->ignored.nr);

trace2_region_enter("status", "print", the_repository);

switch (s->status_format) {
case STATUS_FORMAT_SHORT:
wt_shortstatus_print(s);
Expand All @@ -2338,6 +2344,8 @@ void wt_status_print(struct wt_status *s)
wt_status_serialize_v1(1, s);
break;
}

trace2_region_leave("status", "print", the_repository);
}

/**
Expand Down

0 comments on commit d9cbade

Please sign in to comment.