summaryrefslogtreecommitdiff
path: root/preload-index.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-03 15:16:32 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-03 15:16:32 +0900
commitb5cc90f548375fa8d5ae78a2879eabae78f19ae4 (patch)
tree7b766c3aa988a3d5522e27995343257ccd7b24fb /preload-index.c
parentf7231934dc7ec05ec0d13f8d957585c6045b79d6 (diff)
downloadgit-b5cc90f548375fa8d5ae78a2879eabae78f19ae4.tar.gz
git-b5cc90f548375fa8d5ae78a2879eabae78f19ae4.tar.bz2
git-b5cc90f548375fa8d5ae78a2879eabae78f19ae4.zip
Imported Upstream version 2.17.0upstream/2.17.0
Diffstat (limited to 'preload-index.c')
-rw-r--r--preload-index.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/preload-index.c b/preload-index.c
index 2a83255e..4d08d448 100644
--- a/preload-index.c
+++ b/preload-index.c
@@ -78,6 +78,7 @@ static void preload_index(struct index_state *index,
{
int threads, i, work, offset;
struct thread_data data[MAX_PARALLEL];
+ uint64_t start = getnanotime();
if (!core_preload_index)
return;
@@ -108,6 +109,7 @@ static void preload_index(struct index_state *index,
if (pthread_join(p->pthread, NULL))
die("unable to join threaded lstat");
}
+ trace_performance_since(start, "preload index");
}
#endif