Ahmed Karaman
		
	
	5c362ccfde
	
	
	scripts/performance: Add topN_callgrind.py script
		
			
			Python script that prints the top N most executed functions in QEMU
using callgrind.
Syntax:
topN_callgrind.py [-h] [-n] <number of displayed top functions>  -- \
                      <qemu executable> [<qemu executable options>] \
                      <target executable> [<target execurable options>]
[-h] - Print the script arguments help message.
[-n] - Specify the number of top functions to print.
     - If this flag is not specified, the tool defaults to 25.
Example of usage:
topN_callgrind.py -n 20 -- qemu-arm coulomb_double-arm
Example Output:
No.  Percentage Function Name         Source File
----  --------- ------------------    ------------------------------
   1    24.577% 0x00000000082db000    ???
   2    20.467% float64_mul           <qemu>/fpu/softfloat.c
   3    14.720% float64_sub           <qemu>/fpu/softfloat.c
   4    13.864% float64_add           <qemu>/fpu/softfloat.c
   5     4.876% helper_mulsd          <qemu>/target/i386/ops_sse.h
   6     3.767% helper_subsd          <qemu>/target/i386/ops_sse.h
   7     3.549% helper_addsd          <qemu>/target/i386/ops_sse.h
   8     2.185% helper_ucomisd        <qemu>/target/i386/ops_sse.h
   9     1.667% helper_lookup_tb_ptr  <qemu>/include/exec/tb-lookup.h
  10     1.662% f64_compare           <qemu>/fpu/softfloat.c
  11     1.509% helper_lookup_tb_ptr  <qemu>/accel/tcg/tcg-runtime.c
  12     0.635% helper_lookup_tb_ptr  <qemu>/include/exec/exec-all.h
  13     0.616% float64_div           <qemu>/fpu/softfloat.c
  14     0.502% helper_pand_xmm       <qemu>/target/i386/ops_sse.h
  15     0.502% float64_mul           <qemu>/include/fpu/softfloat.h
  16     0.476% helper_lookup_tb_ptr  <qemu>/target/i386/cpu.h
  17     0.437% float64_compare_quiet <qemu>/fpu/softfloat.c
  18     0.414% helper_pxor_xmm       <qemu>/target/i386/ops_sse.h
  19     0.353% round_to_int          <qemu>/fpu/softfloat.c
  20     0.347% helper_cc_compute_all <qemu>/target/i386/cc_helper.c
Signed-off-by: Ahmed Karaman <ahmedkhaledkaraman@gmail.com>
Signed-off-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Reviewed-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Message-Id: <20200626164546.22102-3-ahmedkhaledkaraman@gmail.com>
		
	
 
		2020-06-27 20:07:59 +02:00
	 
	
	
	
		 ..
	
	
	
		
			
			
			
			
			
			2020-04-04 14:14:09 +02:00
		 
	
		
			
			
			
			
			
			2020-06-12 23:06:22 +01:00
		 
	
		
			
			
			
			
			
			2020-05-31 13:56:46 +02:00
		 
	
		
			
			
			
			
			
			2020-05-31 13:56:46 +02:00
		 
	
		
			
			
			
			
			
			2020-06-15 18:26:46 +02:00
		 
	
		
			
			
			
			
			
			2020-06-27 20:07:59 +02:00
		 
	
		
			
			
			
			
			
			2020-04-30 07:26:41 +02:00
		 
	
		
			
			
			
			
			
			2018-08-23 18:46:25 +02:00
		 
	
		
			
			
			
			
			
			2020-05-31 13:56:46 +02:00
		 
	
		
			
			
			
			
			
			2020-05-31 18:25:07 +02:00
		 
	
		
			
			
			
			
			
			2020-03-17 21:09:26 -04:00
		 
	
		
			
			
			
			
			
			2020-06-24 11:21:00 +01:00
		 
	
		
			
			
			
			
			
			2018-07-05 15:59:41 +01:00
		 
	
		
			
			
			
			
			
			2020-02-07 15:15:16 +01:00
		 
	
		
			
			
			
			
			
			2020-02-07 15:15:16 +01:00
		 
	
		
			
			
			
			
			
			2016-12-20 21:52:12 +01:00
		 
	
		
			
			
			
			
			
			2020-05-31 18:25:07 +02:00
		 
	
		
			
			
			
			
			
			2019-07-23 15:53:25 +01:00
		 
	
		
			
			
			
			
			
			2020-06-12 11:20:14 -04:00
		 
	
		
			
			
			
			
			
			2019-06-12 13:20:20 +02:00
		 
	
		
			
			
			
			
			
			2020-06-08 16:59:29 +01:00
		 
	
		
			
			
			
			
			
			2019-03-22 16:18:07 +00:00
		 
	
		
			
			
			
			
			
			2019-05-07 12:55:02 +01:00
		 
	
		
			
			
			
			
			
			2018-07-05 15:09:52 +02:00
		 
	
		
			
			
			
			
			
			2019-07-15 20:58:37 +02:00
		 
	
		
			
			
			
			
			
			2020-06-09 09:19:48 -07:00
		 
	
		
			
			
			
			
			
			2020-02-07 15:15:16 +01:00
		 
	
		
			
			
			
			
			
			2017-05-10 10:19:24 +03:00
		 
	
		
			
			
			
			
			
			2020-02-07 15:15:16 +01:00
		 
	
		
			
			
			
			
			
			2013-09-09 14:17:56 -05:00
		 
	
		
			
			
			
			
			
			2016-06-07 18:19:23 +03:00
		 
	
		
			
			
			
			
			
			2019-01-11 15:46:55 +01:00
		 
	
		
			
			
			
			
			
			2020-03-20 16:02:00 +01:00
		 
	
		
			
			
			
			
			
			2020-02-22 08:26:47 +00:00
		 
	
		
			
			
			
			
			
			2020-02-13 11:31:58 +01:00
		 
	
		
			
			
			
			
			
			2020-03-09 15:59:31 +01:00
		 
	
		
			
			
			
			
			
			2020-03-12 11:14:05 +00:00
		 
	
		
			
			
			
			
			
			2020-03-06 10:05:24 +00:00
		 
	
		
			
			
			
			
			
			2020-04-14 17:15:33 +01:00
		 
	
		
			
			
			
			
			
			2019-10-07 14:54:45 +02:00
		 
	
		
			
			
			
			
			
			2020-06-23 15:46:05 +01:00
		 
	
		
			
			
			
			
			
			2020-02-07 15:15:16 +01:00
		 
	
		
			
			
			
			
			
			2019-11-06 13:28:27 +01:00
		 
	
		
			
			
			
			
			
			2020-05-31 13:56:46 +02:00
		 
	
		
			
			
			
			
			
			2020-01-13 16:42:20 +00:00
		 
	
		
			
			
			
			
			
			2013-09-30 09:44:35 +02:00
		 
	
		
			
			
			
			
			
			2020-02-07 15:12:48 +01:00
		 
	
		
			
			
			
			
			
			2020-02-07 15:15:16 +01:00
		 
	
		
			
			
			
			
			
			2017-05-10 10:19:24 +03:00
		 
	
		
			
			
			
			
			
			2018-10-16 18:34:19 +02:00
		 
	
		
			
			
			
			
			
			2020-02-07 15:15:16 +01:00
		 
	
		
			
			
			
			
			
			2020-02-07 15:15:16 +01:00
		 
	
		
			
			
			
			
			
			2017-05-10 10:19:24 +03:00
		 
	
		
			
			
			
			
			
			2019-02-05 16:50:16 +01:00
		 
	
		
			
			
			
			
			
			2019-02-05 16:50:16 +01:00
		 
	
		
			
			
			
			
			
			2020-03-06 10:04:57 +00:00
		 
	
		
			
			
			
			
			
			2020-06-24 11:21:00 +01:00
		 
	
		
			
			
			
			
			
			2020-01-23 16:41:36 +00:00
		 
	
		
			
			
			
			
			
			2020-03-20 16:02:00 +01:00
		 
	
		
			
			
			
			
			
			2020-03-20 16:02:00 +01:00
		 
	
		
			
			
			
			
			
			2020-02-07 15:15:16 +01:00