diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-09-03 09:15:01 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-03 09:15:02 -0700 |
| commit | dd903659cd54d4e21ca41b0c1f5d10b66763eb60 (patch) | |
| tree | 642909cef2389652e71743fce42b597cf325aca3 /bundle-uri.c | |
| parent | 533e30819a1d35b1f5278671901aa3217fe8d67e (diff) | |
| parent | db5281276ecdeeb19acea3391804e9ab1ebcd884 (diff) | |
Merge branch 'js/fetch-push-trace2-annotation'
More trace2 events at key points on push and fetch code paths have
been added.
* js/fetch-push-trace2-annotation:
send-pack: add new tracing regions for push
fetch: add top-level trace2 regions
trace2: implement trace2_printf() for event target
Diffstat (limited to 'bundle-uri.c')
| -rw-r--r-- | bundle-uri.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bundle-uri.c b/bundle-uri.c index 1e0ee156ba..dc0c96955b 100644 --- a/bundle-uri.c +++ b/bundle-uri.c @@ -13,6 +13,7 @@ #include "config.h" #include "fetch-pack.h" #include "remote.h" +#include "trace2.h" static struct { enum bundle_list_heuristic heuristic; @@ -799,6 +800,8 @@ int fetch_bundle_uri(struct repository *r, const char *uri, .id = xstrdup(""), }; + trace2_region_enter("fetch", "fetch-bundle-uri", the_repository); + init_bundle_list(&list); /* @@ -824,6 +827,7 @@ cleanup: for_all_bundles_in_list(&list, unlink_bundle, NULL); clear_bundle_list(&list); clear_remote_bundle_info(&bundle, NULL); + trace2_region_leave("fetch", "fetch-bundle-uri", the_repository); return result; } |
