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 Aug 9, 2023
1 parent 9a90f49 commit 6b2f715
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 @@ -4016,6 +4016,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 6b2f715

Please sign in to comment.