Allow to output statistics to stdout.
authorEugeni Dodonov <eugeni.dodonov@intel.com>
Fri, 14 Oct 2011 18:26:13 +0000 (15:26 -0300)
committerEugeni Dodonov <eugeni.dodonov@intel.com>
Fri, 14 Oct 2011 19:01:52 +0000 (16:01 -0300)
commit62c542fd4e7f47d5216785e9a13054ce56973f28
tree17b2ddf267a7589c54d95669db00e9e245ff170b
parenteaaddc794bade33e0d7b0c94406102c9814c2c05
Allow to output statistics to stdout.

This allows intel_gpu_top to run both in statistics-collecting mode
(collecting the per-ring statistics in gnuplot-friendly format) and
ncurses top-like mode at the same time.

It also allows to output the statistics directly to stdout, by using "-o
-", so the results can be parsed directly via a popen() parsing.

If you are using intel_gpu_top as previously (without any command-line
arguments), it should change nothing for you. If you were using its
logging facilities (e.g., the '-o file'), note that the logging will keep
running, but the detailed top-like interface will be on the screen at the
same time.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
man/intel_gpu_top.1
tools/intel_gpu_top.c