Skip to content

Commit 2327a3b

Browse files
jeffhostetlerdscho
authored andcommitted
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>
1 parent abe5a72 commit 2327a3b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎compat/mingw.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4305,6 +4305,8 @@ int wmain(int argc, const wchar_t **wargv)
43054305

43064306
SetConsoleCtrlHandler(handle_ctrl_c, TRUE);
43074307

4308+
trace2_initialize_clock();
4309+
43084310
maybe_redirect_std_handles();
43094311
adjust_symlink_flags();
43104312
fsync_object_files = 1;

0 commit comments

Comments
 (0)