![]() |
![]() |
#1 |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
Profiling code under WinUAE?
Is there any clever way to profile the 68K code I'm running under WinUAE?
I've written several different implementations of the stuff I'm working on, and the version that I think should be fastest isn't, and it would be great to get some insight into where each version is spending its time, but with a bit more precision and sophistication than I can get by inserting measurement code myself. |
![]() |
![]() |
#2 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,438
|
Well, there is at least one profiler for Amiga OS: http://aminet.net/package/dev/misc/AProf334
However, as I understand it's meant for C compiled code so I don't know what would happen with assembly programs or C programs with assembly added. Still, it's better than nothing I suppose. As for directly in WinUAE, I don't think there are tools like that. AFAIK most people custom code this stuff, either by using raster timing bars or using the CIA timers. |
![]() |
![]() |
#3 |
Registered User
Join Date: Feb 2018
Location: London / UK
Posts: 112
|
Are you coding for plain a500? The cycle exact mode should be quite accurate with that. Even with how active bitplanes / blitter etc affect CPU speed. For measuring speed setting different values in color0 register for different parts of code is common and I generally use that. For small routines you could repeat it.
|
![]() |
![]() |
#4 | |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
Quote:
If I could have anything I wanted, I'd like to record what the virtual 68000 is doing at every instruction fetched while it's in my task, then match that up against the 1000 or so lines of code that I'm interested in to get an overview of how my code performs. Wishes are free, I suppose. |
|
![]() |
![]() |
#5 | |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
Quote:
|
|
![]() |
![]() |
#6 | |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,438
|
Quote:
I'm fairly certain that full profilers and simulators (maybe even with the kind of features you'd like to have) exist in that world. However, those options might not be affordable (let alone free ![]() Oh well, one can indeed dream ![]() |
|
![]() |
![]() |
#7 | |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
Quote:
|
|
![]() |
![]() |
#8 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
|
Profiling would be good fit with new debugger features (http://eab.abime.net/showthread.php?t=91321) but because most of these features are something I don't personally need and/or used: I need multiple good suggestions (which good enough explanation why doing it that way is good idea) before I'll implement it.
Also, at least when doing 68000 code, chipset (and what it is doing) is very important part than CPU which makes profiling for non-expanded configs very non-trivial and make results random-looking.. |
![]() |
![]() |
#9 | |
It's coming back!
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
|
I'd love to see a separate tool next to uaedbg that runs an Amiga executable in a similar way, but on exit outputs a CSV that could be interpreted by tools on the Window's side, or just viewed by braver souls. If it could have enough information to reconstruct the drill-down style interface that you get with, say, Java profilers, that would be awesome, but even starting with the number of cycles spent in each instruction in a way that could be compared to the original source would be enough to be useful.
Quote:
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
native x86 code in WinUAE? | Falk | support.WinUAE | 20 | 21 January 2023 18:30 |
New FS-UAE branches with updated emulation code from WinUAE | FrodeSolheim | support.FS-UAE | 103 | 21 June 2019 22:39 |
Profiling WinUAE with Visual Studio 2013 | mark_k | support.WinUAE | 3 | 14 January 2014 20:26 |
Calling Windows code from WinUAE is risky! | Leandro Jardim | support.WinUAE | 2 | 22 January 2012 10:09 |
editing winuae source code | petee1979 | Coders. General | 2 | 22 April 2008 04:19 |
|
|