trace2:data: add trace2 regions to wt-status
commit942b2740ffed773c566e7e4881423b111f98fe93
authorJeff Hostetler <jeffhost@microsoft.com>
Fri, 22 Feb 2019 22:25:03 +0000 (22 14:25 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Feb 2019 23:27:59 +0000 (22 15:27 -0800)
tree14e5ed684c2c6075490aeab61c91d8153c992bc8
parent353d3d77f4fdd1582e3b60824deebca27c7b2790
trace2:data: add trace2 regions to wt-status

Add trace2_region_enter() and trace2_region_leave() calls around the
various phases of a status scan.  This gives elapsed time for each
phase in the GIT_TR2_PERF and GIT_TR2_EVENT trace target.

Also, these Trace2 calls now use s->repo rather than the_repository.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.c