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>
This commit is contained in:
Jeff Hostetler 2019-04-15 13:39:43 -07:00 коммит произвёл Derrick Stolee
Родитель 2f67571a79
Коммит 8a21c5bf4d
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -3524,6 +3524,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;