Skip to content

Commit 08edf4a

Browse files
jeffhostetlermjcheetham
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8315cfe commit 08edf4a

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

42714271
SetConsoleCtrlHandler(handle_ctrl_c, TRUE);
42724272

4273+
trace2_initialize_clock();
4274+
42734275
maybe_redirect_std_handles();
42744276
adjust_symlink_flags();
42754277
fsync_object_files = 1;

0 commit comments

Comments
 (0)