Skip to content

Commit 8fd92a2

Browse files
jeffhostetlerderrickstolee
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 092c22c commit 8fd92a2

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
@@ -3954,6 +3954,8 @@ int wmain(int argc, const wchar_t **wargv)
39543954

39553955
SetConsoleCtrlHandler(handle_ctrl_c, TRUE);
39563956

3957+
trace2_initialize_clock();
3958+
39573959
maybe_redirect_std_handles();
39583960
adjust_symlink_flags();
39593961
fsync_object_files = 1;

0 commit comments

Comments
 (0)