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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
jeffhostetler authored and dscho committed Feb 10, 2025
1 parent 450ff3e commit 2854a6d
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 @@ -4325,6 +4325,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 2854a6d

Please sign in to comment.