Skip to content

Commit

Permalink
trace2: refactor setting process starting time
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jeffhostetler authored and dscho committed Sep 16, 2022
1 parent 6d56c0c commit 62a42a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compat/mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -3954,6 +3954,8 @@ int wmain(int argc, const wchar_t **wargv)

SetConsoleCtrlHandler(handle_ctrl_c, TRUE);

trace2_initialize_clock();

maybe_redirect_std_handles();
adjust_symlink_flags();
fsync_object_files = 1;
Expand Down

0 comments on commit 62a42a4

Please sign in to comment.