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>
Jonathan Tan committed
Apr 11, 2019 at 10:36 UTC
9ed8790282865fbd20825ac130650cf6b1a8818d
1 file changed
+2
builtin/pack-objects.c
+2
@@ -964,6 +964,8 @@ static void write_pack_file(void)
964
if (written != nr_result)
965
die(_("wrote %"PRIu32" objects while expecting %"PRIu32),
966
written, nr_result);
967
+ trace2_data_intmax("pack-objects", the_repository,
968
+ "write_pack_file/wrote", nr_result);
969
}
970
971
static int no_try_delta(const char *path)