mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	overlay: Include the core count in the cpu info line
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
		
							parent
							
								
									c6b26c5a40
								
							
						
					
					
						commit
						11567e318e
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user