A simple panel button that shows CPU and RAM memory usage. Clicking shows the top 10 processes using CPU and memory.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
As per review of v1, I changed all process callings to asynchronous calls, cleaned a bit in general, and also called super._onDestroy at the end
Newer version approved. If passing the `G_SPAWN_DO_NOT_REAP_CHILD` you must use a child watch function or you will leave zombie processes. Additionally spawning an process asynchronously then reading the output synchronously will still block the main thread. Perhaps you want to consider using `Gio.Subprocess.communicate_utf8_async()` for this use case. There are some examples here: https://www.andyholmes.ca/articles/subprocesses-in-gjs.html#communicating-with-processes