Old version 1.22 of intel_gpu_top has option to output usage statistic to file or stdio, but new v1.23 lost this option.
This needed for monitoring GPU usage on server and send data to web page via socket.io.
Also, will be cool if intel_gpu_top can output stats to stdio in JSON format!
New intel_gpu_top also supports a pretty different set of data. So if we added this option - can you adapt to the new data and is it useful for your use case?
Secondly, you could get the CSV data for all the stuff new intel_gpu_top shows in a bit more raw form from the standard kernel perf tool. Just one example on render command streamer busyness:
perf stat -a -e i915/rcs0-busy/ -I 1000 -x
As said, all the data new version shows is available like this, albeit with some required post-procesing like converting absolute time differences to percentages and similar.
1) Yes, can adapt without any problem. I my case I need render usage and video encode/decode usage data, and memory usage speed/capacity.
2)I know, but this is required extra step to convert/represent data in percent and custom parser. Will be cool if intel_gpu_top just print to stdio raw JSON.
Sorry it slipped from my radar. We could add some form of non-interactive stdio output I guess, shouldn't be too difficult. Will see how it fits against the higher priority work.