mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	Don't double count misses. (GH-100984)
This commit is contained in:
		
							parent
							
								
									e5bd5ad70d
								
							
						
					
					
						commit
						c00eb1eae6
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -404,6 +404,9 @@ def emit_specialization_overview(opcode_stats, total): | |||
|             total = 0 | ||||
|             counts = [] | ||||
|             for i, opcode_stat in enumerate(opcode_stats): | ||||
|                 # Avoid double counting misses | ||||
|                 if title == "Misses" and "specializable" in opcode_stat: | ||||
|                     continue | ||||
|                 value = opcode_stat.get(field, 0) | ||||
|                 counts.append((value, opname[i])) | ||||
|                 total += value | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mark Shannon
						Mark Shannon