send telemetry about git-exec duration (#162731)

* send telemetry about git-exec duration

* measure spawn and exec
This commit is contained in:
Johannes Rieken
2022-10-06 13:04:35 +02:00
committed by GitHub
parent 8245b4770a
commit b2b7e0be6e
2 changed files with 21 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ async function createModel(context: ExtensionContext, outputChannelLogger: Outpu
userAgent: `git/${info.version} (${(os as any).version?.() ?? os.type()} ${os.release()}; ${os.platform()} ${os.arch()}) vscode/${vscodeVersion} (${env.appName})`,
version: info.version,
env: environment,
});
}, telemetryReporter);
const model = new Model(git, askpass, context.globalState, outputChannelLogger, telemetryReporter);
disposables.push(model);