diff options
author | Josh Steadmon <steadmon@google.com> | 2019-10-02 23:49:29 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-03 01:13:18 (GMT) |
commit | 25e4b8099c0ed4c2b4eeb3c8a7edce3785d9aeab (patch) | |
tree | 922126cac3ca8f317041e6a0984199a1f12161ec /builtin | |
parent | 5fc31180d87c5f20c4cdfb89f93daf77c3bd50a1 (diff) | |
download | git-25e4b8099c0ed4c2b4eeb3c8a7edce3785d9aeab.zip git-25e4b8099c0ed4c2b4eeb3c8a7edce3785d9aeab.tar.gz git-25e4b8099c0ed4c2b4eeb3c8a7edce3785d9aeab.tar.bz2 |
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')
-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 3742daf..cc1292a 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); |