aboutsummaryrefslogtreecommitdiff
path: root/blame.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-11-05 11:47:53 -0800
committerJunio C Hamano <junkio@cox.net>2006-11-05 11:49:56 -0800
commit2bc45477a53b9b7a5202a816b96c14428f683c38 (patch)
treecb8b24b50d5283766ecdeade78da68540a9763c9 /blame.c
parent854b97f6eb3bcbeb76b2705bfbffead1558bde77 (diff)
downloadgit-2bc45477a53b9b7a5202a816b96c14428f683c38.tar.gz
git-2bc45477a53b9b7a5202a816b96c14428f683c38.tar.xz
git-blame: add internal statistics to count read blobs.
Diffstat (limited to 'blame.c')
-rw-r--r--blame.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/blame.c b/blame.c
index 8cfd5d94c..d0e506c02 100644
--- a/blame.c
+++ b/blame.c
@@ -59,6 +59,7 @@ static void get_blob(struct commit *commit);
static int num_get_patch;
static int num_commits;
static int patch_time;
+static int num_read_blob;
struct blame_diff_state {
struct xdiff_emit_state xm;
@@ -204,6 +205,7 @@ static void get_blob(struct commit *commit)
return;
info->buf = read_sha1_file(info->sha1, type, &info->size);
+ num_read_blob++;
assert(!strcmp(type, blob_type));
}
@@ -910,6 +912,7 @@ int main(int argc, const char **argv)
}
if (DEBUG) {
+ printf("num read blob: %d\n", num_read_blob);
printf("num get patch: %d\n", num_get_patch);
printf("num commits: %d\n", num_commits);
printf("patch time: %f\n", patch_time / 1000000.0);