trace2: collect Windows-specific process information

Add platform-specific interface to log information about the current
process.

On Windows, this interface is used to indicate whether the git process
is running under a debugger and list names of the process ancestors.

Information for other platforms is left for a future effort.

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-02-22 14:25:02 -08:00
committed by Junio C Hamano
parent ee4512ed48
commit 353d3d77f4
4 changed files with 164 additions and 0 deletions

View File

@ -37,6 +37,7 @@ int main(int argc, const char **argv)
trace2_initialize();
trace2_cmd_start(argv);
trace2_collect_process_info();
git_resolve_executable_dir(argv[0]);