ClementTsang / bottom

Yet another cross-platform graphical process/system monitor.
https://clementtsang.github.io/bottom
MIT License
10.22k stars 240 forks source link

option to enable logging of data to a file or a socket (e.g. `--data_log_location log.csv/.sqlite`) #1586

Open wis opened 2 months ago

wis commented 2 months ago

Checklist

Describe the feature request

It would be nice to have a feature where the updates to the table are logged to disk, I would like to analyze the data to draw conclusions from the data over a longer time frame, like how does e.g. Chromium's memory usage balloon up with time as I use it, or which long running process used the most CPU resources today?

Instead of writing to a file, It would also be useful if bottom outputs the data to a socket, and not necessarily in CSV format, over a socket updates in e.g. JSON would work too.

On my system, bottom running in the background all the time takes between 0.1% to 0.4% of the CPU resources, it would be nice if you could pay this cost once, for one instance of bottom, and not need to have a second program also running and constantly querying the running processes just for logging.

ClementTsang commented 1 month ago

Hm, kinda makes me think of #1389; some way to output to disk or something similar would be interesting, yeah.