Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
drm
igt-gpu-tools
Commits
11567e31
Commit
11567e31
authored
Aug 27, 2013
by
Chris Wilson
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
overlay: Include the core count in the cpu info line
Signed-off-by:
Chris Wilson
<
chris@chris-wilson.co.uk
>
parent
c6b26c5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
overlay/overlay.c
overlay/overlay.c
+3
-1
No files found.
overlay/overlay.c
View file @
11567e31
...
...
@@ -222,7 +222,9 @@ static void show_gpu_top(struct overlay_context *ctx, struct overlay_gpu_top *gt
y
=
PAD
+
12
-
2
;
cairo_set_source_rgba
(
ctx
->
cr
,
0
.
75
,
0
.
25
,
0
.
75
,
1
.);
cairo_move_to
(
ctx
->
cr
,
PAD
,
y
);
sprintf
(
txt
,
"CPU: %3d%% busy"
,
gt
->
cpu_top
.
busy
*
gt
->
cpu_top
.
nr_cpu
);
len
=
sprintf
(
txt
,
"CPU: %3d%% busy"
,
gt
->
cpu_top
.
busy
*
gt
->
cpu_top
.
nr_cpu
);
if
(
gt
->
cpu_top
.
nr_cpu
)
sprintf
(
txt
+
len
,
" (%d cores)"
,
gt
->
cpu_top
.
nr_cpu
);
cairo_show_text
(
ctx
->
cr
,
txt
);
y
+=
14
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment