diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-01-27 19:27:56 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-02 11:20:16 -0800 |
commit | ca54d9baa4a8e73141d4c963245ee6f09dcc994d (patch) | |
tree | d0418cefb4c51789cc338eed93c7b0933644d012 /t | |
parent | First batch after 2.16 (diff) | |
download | tgif-ca54d9baa4a8e73141d4c963245ee6f09dcc994d.tar.xz |
trace: measure where the time is spent in the index-heavy operations
All the known heavy code blocks are measured (except object database
access). This should help identify if an optimization is effective or
not. An unoptimized git-status would give something like below:
0.001791141 s: read cache ...
0.004011363 s: preload index
0.000516161 s: refresh index
0.003139257 s: git command: ... 'status' '--porcelain=2'
0.006788129 s: diff-files
0.002090267 s: diff-index
0.001885735 s: initialize name hash
0.032013138 s: read directory
0.051781209 s: git command: './git' 'status'
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions