llvm-project
b9c40729 - [lldb][Windows] Improve process_is_running check (#227308)

Commit
51 days ago
[lldb][Windows] Improve process_is_running check (#227308) The current implementation of `process_is_running` uses [`tasklist`](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/tasklist) on Windows. It prints each CSV field through ShowMessage, which calls `GetConsoleOutputCP`. From a benchmark at desk, when under load, this call takes `~85ms` instead of `~10us`. This causes tests to time out when listing a large amount of processes when running check-lldb. This patch asks the kernel about the one process instead of listing all of them with tasklist. rdar://188700994
Parents
Loading