]> git.ipfire.org Git - thirdparty/git.git/commit - fetch-pack.c
fetch: add trace2 instrumentation
authorErik Chen <erikchen@chromium.org>
Tue, 19 Nov 2019 23:02:09 +0000 (23:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Nov 2019 01:06:40 +0000 (10:06 +0900)
commit9e5afdf99703f0bc851b8f7fb2fe5d9817cc6f39
tree2f08ec23eb948f1281b949a095b066d7272cab5b
parentda72936f544fec5a335e66432610e4cef4430991
fetch: add trace2 instrumentation

Add trace2 regions to fetch-pack.c to better track time spent in the various
phases of a fetch:

    * parsing remote refs and finding a cutoff
    * marking local refs as complete
    * marking complete remote refs as common

All stages could potentially be slow for repositories with many refs.

Signed-off-by: Erik Chen <erikchen@chromium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fetch-pack.c