summaryrefslogtreecommitdiffstats
path: root/midx.c
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2019-03-21 20:36:13 +0100
committerJunio C Hamano <gitster@pobox.com>2019-03-22 06:31:11 +0100
commitd829223a4256d2a6f0e07425ba3828d28bda7596 (patch)
tree820bb1a8aae6c469553c4a8d5b672d0df8c6914b /midx.c
parentprogress: add sparse mode to force 100% complete message (diff)
downloadgit-d829223a4256d2a6f0e07425ba3828d28bda7596.tar.xz
git-d829223a4256d2a6f0e07425ba3828d28bda7596.zip
trace2:data: add trace2 data to midx
Log multi-pack-index command mode. Log number of objects and packfiles in the midx. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'midx.c')
-rw-r--r--midx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/midx.c b/midx.c
index 8a505fd423..24141a7c62 100644
--- a/midx.c
+++ b/midx.c
@@ -8,6 +8,7 @@
#include "sha1-lookup.h"
#include "midx.h"
#include "progress.h"
+#include "trace2.h"
#define MIDX_SIGNATURE 0x4d494458 /* "MIDX" */
#define MIDX_VERSION 1
@@ -164,6 +165,9 @@ struct multi_pack_index *load_multi_pack_index(const char *object_dir, int local
m->pack_names[i]);
}
+ trace2_data_intmax("midx", the_repository, "load/num_packs", m->num_packs);
+ trace2_data_intmax("midx", the_repository, "load/num_objects", m->num_objects);
+
return m;
cleanup_fail: