git: add performance tracing for git's main() function to debug scripts