Skip to content

Commit 17608ad

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 2ab6cc1 commit 17608ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compat/mingw.c

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

40224022
SetConsoleCtrlHandler(handle_ctrl_c, TRUE);
40234023

4024+
trace2_initialize_clock();
4025+
40244026
maybe_redirect_std_handles();
40254027
adjust_symlink_flags();
40264028
fsync_object_files = 1;

0 commit comments

Comments
 (0)