]> git.ipfire.org Git - thirdparty/git.git/commit
trace2:data: pack-objects: add trace2 regions
authorDerrick Stolee <dstolee@microsoft.com>
Fri, 22 Feb 2019 22:25:07 +0000 (14:25 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Feb 2019 23:28:21 +0000 (15:28 -0800)
commitae417807b01b34b7fd4f1a5a9d889b34f8a563d2
tree90a888f043b0286e4ae2eb400a269859720dd971
parent42fee7a3889b558aa8b79dfa2802d8fd8fbd8c60
trace2:data: pack-objects: add trace2 regions

When studying the performance of 'git push' we would like to know
how much time is spent at various parts of the command. One area
that could cause performance trouble is 'git pack-objects'.

Add trace2 regions around the three main actions taken in this
command:

1. Enumerate objects.
2. Prepare pack.
3. Write pack-file.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c