[bug#33161,0/1] Add 'guix processes'

Message ID 20181026092512.28810-1-ludo@gnu.org
Headers show
Series Add 'guix processes' | expand

Message

Ludovic Courtès Oct. 26, 2018, 9:25 a.m. UTC
Hello Guix!

This patch adds a ‘guix processes’ command that I find handy to
inspect/debug Guix activity.  In particular, I realized I had been
doing this by hand on berlin when trying to understand what’s going
on, so this tool will be helpful there.  :-)

Note that it’s low-tech: it works by browsing the processes in /proc
and extracting the relevant info from there.

Thoughts?

Ludo’.

Ludovic Courtès (1):
  Add 'guix processes'.

 Makefile.am                |   2 +
 doc/guix.texi              |  56 ++++++++++
 guix/scripts/processes.scm | 223 +++++++++++++++++++++++++++++++++++++
 po/guix/POTFILES.in        |   1 +
 tests/processes.scm        |  86 ++++++++++++++
 5 files changed, 368 insertions(+)
 create mode 100644 guix/scripts/processes.scm
 create mode 100644 tests/processes.scm

Comments

Ludovic Courtès Oct. 28, 2018, 11:15 p.m. UTC | #1
Ludovic Courtès <ludo@gnu.org> skribis:

> This patch adds a ‘guix processes’ command that I find handy to
> inspect/debug Guix activity.  In particular, I realized I had been
> doing this by hand on berlin when trying to understand what’s going
> on, so this tool will be helpful there.  :-)

Pushed as 63eb2b899be7ac857454442e09d0ebd23fe4f871 with small
improvements to the doc!

Ludo’.