[hatari-devel] Profiling support to Hatari debugger

Eero Tamminen eerot at users.berlios.de
Fri Jun 25 23:34:13 CEST 2010


Hi,

Attached patch adds profiling information to the disassembly output.
The output of that will look like this (for AHCC compiled EmuTOS):
---------
00e00d12: 4e75 4e56 0000 48e7 0030 RTS.L
_vkprintf, 5/90 times/cycles:
00e00d14: 4e56 0000 48e7 0030 266e LINK.W A6,#$0000
6/144 times/cycles:
00e00d18: 48e7 0030 266e 000c 246e MVMLE.L #$0030,-(A7)
5/80 times/cycles:
00e00d1c: 266e 000c 246e 0008 4eb9 MOVEA.L (A6,$000c) == $00010fee,A3
6/96 times/cycles:
00e00d20: 246e 0008 4eb9 00e0 683c MOVEA.L (A6,$0008) == $00010fea,A2
5/100 times/cycles:
00e00d24: 4eb9 00e0 683c 4a40 671c JSR.L $00e0683c
6/24 times/cycles:
00e00d2a: 4a40 671c 2f0b 2f0a 4879 TST.W D0
5/50 times/cycles:
00e00d2c: 671c 2f0b 2f0a 4879 00e0 BEQ.B #$0000001c == 00e00d4a (FALSE)
00e00d2e: 2f0b 2f0a 4879 00e0 0cf6 MOVE.L A3,-(A7)
---------

Does that look OK?


	- Eero
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disasm-profile.diff
Type: text/x-diff
Size: 4940 bytes
Desc: not available
URL: <https://lists.berlios.de/pipermail/hatari-devel/attachments/20100626/db1996f1/attachment.diff>


More information about the hatari-devel mailing list