intel_gpu_top: account for time spent in syscalls
authorEugeni Dodonov <eugeni.dodonov@intel.com>
Mon, 5 Sep 2011 18:31:17 +0000 (15:31 -0300)
committerEugeni Dodonov <eugeni.dodonov@intel.com>
Mon, 5 Sep 2011 19:18:11 +0000 (16:18 -0300)
commit6194c75c8f438d13f6535d70009658851929f39e
tree79c9b61a17ae9aa1fe448343be3b7a8259988663
parent922214f9869220373c3768cfcbd0e243e6ac07b6
intel_gpu_top: account for time spent in syscalls

This allows intel_gpu_top to properly account for time spent inside system
calls. Effectively, with previous implementation, intel_gpu_top could
spent longer than 1s between consecutive measures. This attempts to
minimize the extra time spent while polling for data.

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