(process: Process)
| 35 | }; |
| 36 | |
| 37 | const extractProcessName = (process: Process) => { |
| 38 | // we cannot use directly the display_name because it is exposed by every executable and it might lead to unexpected results |
| 39 | const separator = platform.startsWith("win32") ? "\\" : "/"; |
| 40 | return rpartition(process.executable, separator)[1]; |
| 41 | }; |
| 42 | |
| 43 | // This function can take a Process in the case of the dropdown list or a string in the case of the input field when we want to add a process which is not in the list |
| 44 | const addProcessToSelection = (option: Process | string) => { |
no test coverage detected
searching dependent graphs…