diff options
| author | Jonathan Tan <jonathantanmy@google.com> | 2019-04-11 10:36:26 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-04-12 15:19:46 +0900 |
| commit | 9ed8790282865fbd20825ac130650cf6b1a8818d (patch) | |
| tree | cf8d21c7d1950cc2edcf8604ad2e04d2027600d2 /builtin/pack-objects.c | |
| parent | e35b8cb8e212e3557efc565157ceb5cbaaf0d87f (diff) | |
| download | git-9ed8790282865fbd20825ac130650cf6b1a8818d.tar.gz | |
pack-objects: write objects packed to trace2
This is useful when investigating performance of pushes, and other times
when no progress information is written (because the pack is written to
stdout).
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/pack-objects.c')
| -rw-r--r-- | builtin/pack-objects.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index a154fc29f6..3326aeb497 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -964,6 +964,8 @@ static void write_pack_file(void) if (written != nr_result) die(_("wrote %"PRIu32" objects while expecting %"PRIu32), written, nr_result); + trace2_data_intmax("pack-objects", the_repository, + "write_pack_file/wrote", nr_result); } static int no_try_delta(const char *path) |
