21 December 2022, 16:27 | #1 |
Alien Bleed
Join Date: Aug 2022
Location: UK
Posts: 4,165
|
Instruction instrumentation
Hi,
Is it possible, perhaps using the debugger, to profile instruction counts, by type, for some duration? I don't mean cycle exact or anything, just a set of opcode/count pairs over some time interval. |
31 December 2022, 14:34 | #2 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,515
|
Doing only that would most likely return totally useless results..
How do you define an "instruction"? Counts per unique opcode words would be easy enough but that can't be used to separate all addressing modes. Or do you only need to separate "base" instructions? (MOVE, NOP, SUB etc) And what about OS routines? Filesystem handlers? Device drivers? You can't detect when you are running OS code and when "your" code easily. One possibility is to use "uaedbg" mode where whole binary gets loaded in normally non-existing RAM space. Not taking these in account would return totally useless information. Unless program takes over the system. |
31 December 2022, 14:47 | #3 | |
Alien Bleed
Join Date: Aug 2022
Location: UK
Posts: 4,165
|
Quote:
More ideally, I would like to be able to call a trap of some kind that would initiate the instrumentation and a later trap that would disable it and log it somewhere. The scope of this code is small and doesn't call any library routines between the points I want to instrument. Now any kind of task switch or other interrupt in the duration of the interval will skew the results but it's not particularly likely in this case and I could just as easily invoke Disable() and Forbid() outside the region I'm instrumenting. Last edited by Karlos; 31 December 2022 at 14:52. |
|
21 January 2023, 18:31 | #4 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,515
|
Quote:
|
|
21 January 2023, 23:29 | #5 |
Alien Bleed
Join Date: Aug 2022
Location: UK
Posts: 4,165
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AGA Scroll Instruction | Auscoder | Coders. Asm / Hardware | 9 | 13 February 2020 10:47 |
Copper SKIP instruction | sparhawk | Coders. Asm / Hardware | 21 | 15 January 2020 16:21 |
Exolon Instruction Manual | ransom1122 | request.Other | 6 | 18 May 2019 23:32 |
Please help me: one by one instruction needed | JewStrangler | support.WinUAE | 15 | 20 September 2010 18:55 |
$48e70000 instruction | Asman | Coders. General | 5 | 10 February 2006 23:00 |
|
|