Skip to content

Commit 9ed8790

Browse files
jonathantanmygitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e35b8cb commit 9ed8790

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builtin/pack-objects.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,8 @@ static void write_pack_file(void)
964964
if (written != nr_result)
965965
die(_("wrote %"PRIu32" objects while expecting %"PRIu32),
966966
written, nr_result);
967+
trace2_data_intmax("pack-objects", the_repository,
968+
"write_pack_file/wrote", nr_result);
967969
}
968970

969971
static int no_try_delta(const char *path)

0 commit comments

Comments
 (0)