diff options
author | Josh Steadmon <steadmon@google.com> | 2019-10-02 16:49:29 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-03 10:13:18 +0900 |
commit | 25e4b8099c0ed4c2b4eeb3c8a7edce3785d9aeab (patch) | |
tree | 922126cac3ca8f317041e6a0984199a1f12161ec /builtin/push.c | |
parent | fetch: add trace2 instrumentation (diff) | |
download | tgif-25e4b8099c0ed4c2b4eeb3c8a7edce3785d9aeab.tar.xz |
push: add trace2 instrumentation
Add trace2 regions in transport.c and builtin/push.c to better track
time spent in various phases of pushing:
* Listing refs
* Checking submodules
* Pushing submodules
* Pushing refs
Signed-off-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/push.c')
-rw-r--r-- | builtin/push.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/push.c b/builtin/push.c index 3742daf7b0..cc1292a566 100644 --- a/builtin/push.c +++ b/builtin/push.c @@ -357,8 +357,10 @@ static int push_with_options(struct transport *transport, struct refspec *rs, if (verbosity > 0) fprintf(stderr, _("Pushing to %s\n"), transport->url); + trace2_region_enter("push", "transport_push", the_repository); err = transport_push(the_repository, transport, rs, flags, &reject_reasons); + trace2_region_leave("push", "transport_push", the_repository); if (err != 0) { fprintf(stderr, "%s", push_get_color(PUSH_COLOR_ERROR)); error(_("failed to push some refs to '%s'"), transport->url); |