Skip to content

Commit 47d83b9

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 b3c42cc commit 47d83b9

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

43314331
SetConsoleCtrlHandler(handle_ctrl_c, TRUE);
43324332

4333+
trace2_initialize_clock();
4334+
43334335
maybe_redirect_std_handles();
43344336
adjust_symlink_flags();
43354337
fsync_object_files = 1;

0 commit comments

Comments
 (0)