From: Jonathan Tan Date: Thu, 11 Apr 2019 17:36:26 +0000 (-0700) Subject: pack-objects: write objects packed to trace2 X-Git-Tag: v2.22.0-rc0~30^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9ed8790282865fbd20825ac130650cf6b1a8818d?ds=sidebyside 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 Signed-off-by: Junio C Hamano --- 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)