@@ -466,13 +466,13 @@ def format_size(size):
466466 l1i = patches .Rectangle ((x , y - 0.6 ), x_spacing * 2 - 0.4 , 0.4 ,
467467 facecolor = l1_color , edgecolor = 'white' , linewidth = 0.5 )
468468 ax .add_patch (l1i )
469- ax .text (x + x_spacing - 0.2 , y - 0.4 , f"L1 (i) { format_size (cache ['size' ])} " ,
469+ ax .text (x + x_spacing - 0.2 , y - 0.4 , f"L1-I { format_size (cache ['size' ])} " ,
470470 ha = 'center' , va = 'center' , fontsize = 8 , color = text_color )
471471 elif cache ['type' ] == 1 : # L1d
472472 l1d = patches .Rectangle ((x , y - 1.0 ), x_spacing * 2 - 0.4 , 0.4 ,
473473 facecolor = l1_color , edgecolor = 'white' , linewidth = 0.5 )
474474 ax .add_patch (l1d )
475- ax .text (x + x_spacing - 0.2 , y - 0.8 , f"L1 (d) { format_size (cache ['size' ])} " ,
475+ ax .text (x + x_spacing - 0.2 , y - 0.8 , f"L1-D { format_size (cache ['size' ])} " ,
476476 ha = 'center' , va = 'center' , fontsize = 8 , color = text_color )
477477
478478 for group in l2_groups .values ():
@@ -507,13 +507,13 @@ def format_size(size):
507507 l1i = patches .Rectangle ((x , y - 0.6 ), core_width , 0.4 ,
508508 facecolor = l1_color , edgecolor = 'white' , linewidth = 0.5 )
509509 ax .add_patch (l1i )
510- ax .text (x + core_width / 2 , y - 0.4 , f"L1i { format_size (cache ['size' ])} " ,
510+ ax .text (x + core_width / 2 , y - 0.4 , f"L1-I { format_size (cache ['size' ])} " ,
511511 ha = 'center' , va = 'center' , fontsize = 8 , color = text_color )
512512 elif cache ['type' ] == 1 : # L1d
513513 l1d = patches .Rectangle ((x , y - 1.0 ), core_width , 0.4 ,
514514 facecolor = l1_color , edgecolor = 'white' , linewidth = 0.5 )
515515 ax .add_patch (l1d )
516- ax .text (x + core_width / 2 , y - 0.8 , f"L1d { format_size (cache ['size' ])} " ,
516+ ax .text (x + core_width / 2 , y - 0.8 , f"L1-D { format_size (cache ['size' ])} " ,
517517 ha = 'center' , va = 'center' , fontsize = 8 , color = text_color )
518518
519519 if i % 4 == 0 :
@@ -570,11 +570,11 @@ def format_size(size):
570570
571571 # Create legend elements
572572 legend_elements = [
573- patches .Patch (facecolor = p_core_color , edgecolor = 'white' , label = 'Performance Cores (P-cores) ' ),
574- patches .Patch (facecolor = e_core_color , edgecolor = 'white' , label = 'Efficiency Cores (E-cores) ' ),
573+ patches .Patch (facecolor = p_core_color , edgecolor = 'white' , label = 'Performance Cores' ),
574+ patches .Patch (facecolor = e_core_color , edgecolor = 'white' , label = 'Efficiency Cores' ),
575575 patches .Patch (facecolor = l1_color , edgecolor = 'white' , label = 'L1 Cache (Data & Instruction)' ),
576576 patches .Patch (facecolor = l2_color , edgecolor = 'white' , label = 'L2 Cache' ),
577- patches .Patch (facecolor = l3_color , edgecolor = 'white' , label = 'L3 Cache (Shared) ' )
577+ patches .Patch (facecolor = l3_color , edgecolor = 'white' , label = 'L3 Cache' )
578578 ]
579579
580580 # Add legend in the bottom right corner
0 commit comments