Bill Nottingham wrote:
As powertop is run now, it's a little tricky to get the list of
offending apps recorded for posterity or reporting.
This patch adds support for dumping the displayed data to stdout,
instead of into a ncurses window. It's not the cleanest thing in
the world, but it works. Required some minor tweaks to the display
routines (mostly adding some newlines).
Other things introduced in the process:
- getopt handling so you can specify this
- add an option to change the reporting period
Opinions? I'm still debating if this is the best mechanism
for what I'd like to do with it. (Basically, make it easy for users
to submit reports.)
another option would be to collect stats for the entire duration of
powertop running and always dump a top 10 at exit (post-ncurses cleanup)
_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power