winpty icon indicating copy to clipboard operation
winpty copied to clipboard

Report of winpty_get_console_process_list taking 30 seconds

Open Tyriar opened this issue 7 years ago • 1 comments

See https://github.com/Tyriar/node-pty/commit/a169ca224661031533bd21fd504333ed29c84c25#commitcomment-26318335 which says that pty.getProcessList is taking 30 seconds to return an empty array. There isn't much to that function other than calling the new API winpty_get_console_process:

https://github.com/Tyriar/node-pty/blob/12caa78c871caa388b013ab9d2e327f2b0a3a76e/src/win/pty.cc#L87-L112

Commit that pulled in winpty_get_console_process.

/cc @rprichard @the-ress

Tyriar avatar Dec 18 '17 15:12 Tyriar

The non-console process tree API version I put together for this used an AsyncWorker to prevent any negative effects if IO took too long https://github.com/Microsoft/vscode-windows-process-tree/blob/master/src/worker.cc

Tyriar avatar Dec 18 '17 15:12 Tyriar