From 8abfdc548927e81bdaacff0645d77304580cdca2 Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Mon, 4 Dec 2017 21:22:35 +0100 Subject: [PATCH] Bypass execution policy to gather CPU load --- src/vs/base/node/ps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/base/node/ps.ts b/src/vs/base/node/ps.ts index 5b7ba1fa98a..51667d47435 100644 --- a/src/vs/base/node/ps.ts +++ b/src/vs/base/node/ps.ts @@ -129,7 +129,7 @@ export function listProcesses(rootPid: number): Promise { const execMain = path.basename(process.execPath); const script = URI.parse(require.toUrl('vs/base/node/ps-win.ps1')).fsPath; const commandLine = `${script} -ProcessName '${execMain}' -MaxSamples 3`; - const cmd = spawn('powershell.exe', ['-Command', commandLine]); + const cmd = spawn('powershell.exe', ['-ExecutionPolicy', 'Bypass', '-Command', commandLine]); let stdout = ''; let stderr = '';