nschloe / tiptop

:desktop_computer: Command-line system monitoring
MIT License
1.78k stars 70 forks source link

[Feature Request] Two improvements to procs section (filter by user like `top -u username` and wrap args column) #89

Open caffeinatedMike opened 2 years ago

caffeinatedMike commented 2 years ago

Amazing project! It's so much more useful than the typical top command I'm used to using.

I have two feature requests if possible: 1) Being able to supply a username filter (like tiptop -u username) that can be used to filter the proc list like top does (top -u username) 2) Having the procs' args column optionally wrap would really help differentiate processes. For the majority of my processes the best identifying column (args) cuts off most commands when the processes originate from within virtual environments (ex: /www/projectname/venv/bin/celery --app="app.tasks.celery" worker ...). One extensive command looks like this:

    /www/projectname/venv/bin/celery
        --app="app.tasks.celery"
        worker
        --queues="maintenance"
        --hostname="maintenance@%%h"
        --concurrency="1"
        --statedb="/www/projectname/syslogs/celery-maintenance-worker-state.sqlite"
        --loglevel="info"
I get that such a large command might cause issues when attempting to wrap, so I guess that's what leads me to suggestion 2.1

2.1) Ability to limit the number of processes shown in the procs list.