On Unix-based systems, you can use SemanticImport to get real-time statistics about the system processes.
Start by running the system shell.
Next, run the "ps" command and retrieve its output after a small pause.
Parse the data using SemanticImportString.
Make a function that shows the processes with the highest CPU usage.
Make a dynamically updating display of CPU usage.
Try Buy Mathematica is available on Windows, macOS, Linux & cloud »
Questions? Comments? Contact a Wolfram expert »