trace2: refactor setting process starting time
Create trace2_initialize_clock() and call from main() to capture process start time in isolation and before other sub-systems are ready. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
1703751f21
commit
a089724958
@ -27,6 +27,8 @@ int main(int argc, const char **argv)
|
||||
{
|
||||
int result;
|
||||
|
||||
trace2_initialize_clock();
|
||||
|
||||
/*
|
||||
* Always open file descriptors 0/1/2 to avoid clobbering files
|
||||
* in die(). It also avoids messing up when the pipes are dup'ed
|
||||
|
Reference in New Issue
Block a user