[igt-dev] [PATCH i-g-t 2/2] intel-gpu-overlay: Show 1s, 30s and 15m GPU load
Chris Wilson
chris at chris-wilson.co.uk
Mon Feb 12 21:00:26 UTC 2018
Quoting Tvrtko Ursulin (2018-02-12 19:01:58)
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>
> Show total GPU loads in the window banner.
>
> Engine load is defined as total of runnable and running requests on an
> engine.
>
> Total, non-normalized, load is display. In other words if N engines are
> busy with exactly one request, the load will be shown as N.
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> ---
All matches my understanding, at least :)
> @@ -951,16 +952,26 @@ int main(int argc, char **argv)
> show_gem_objects(&ctx, &ctx.gem_objects);
>
> {
> - char buf[80];
> + struct gpu_top *gt = &ctx.gpu_top.gpu_top;
> + char buf[80], buf2[256];
> cairo_text_extents_t extents;
> +
> gethostname(buf, sizeof(buf));
len = strlen(buf);
snprintf(buf + len, sizeof(buf) - len, ?
-Chris
More information about the igt-dev
mailing list