Skip to content

Commit 8ef2956

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 ee783ff commit 8ef2956

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

42384238
SetConsoleCtrlHandler(handle_ctrl_c, TRUE);
42394239

4240+
trace2_initialize_clock();
4241+
42404242
maybe_redirect_std_handles();
42414243
adjust_symlink_flags();
42424244
fsync_object_files = 1;

0 commit comments

Comments
 (0)