Expand description
Cross-platform process abstraction
Provides a unified interface for discovering and managing processes across macOS, Linux, and Windows.
Structs§
- Process
- Represents a system process with relevant information
- RawText
- The text of a process that name matching reads, as the OS gave it: control characters unescaped, unlike the fields a process is displayed from
Enums§
- Process
Status - Process status
Functions§
- escape_
control - Make text from other processes safe to print: control characters become
visible escapes, as
lsofandpsdo. Names, command lines and paths are set by whoever runs a process, and printed raw an ESC sequence could recolour, retitle or rewrite the terminal of whoever runs proc (and a newline would split a table row). Applied where process data is read, so every view and the JSON show the same text. - is_
thread - On Linux, sysinfo lists every thread of a process as an entry of its own,
with the process’s command line, so a node server shows up a dozen times.
Process listings skip them;
thread_kindis alwaysNoneelsewhere. - parse_
signal_ name - Parse a signal name to a nix Signal (Unix only)