English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 02 June 2024, 12:49   #1
remz
Registered User
 
Join Date: May 2022
Location: Canada
Posts: 140
winUAE - Is there a profiler

Hi everyone,
Alongside the useful features of the WinUAE debugger, is there a way to profile code?
What I would have in mind could be something as simple as setting up "dummy marker instructions", a bit like some use move 4,4 to place a no-side-effect instruction that can be used as an easy to remember breakpoint with "w 4 4".

My question would something similar which a tool could intercept and start calculating time/clock cycles/etc between the next occurence of that same marker.

This would allow monitor and graphing in realtime the performance for multiple section of a game main loop, without having to introduce the couting and printing code directly in the Amiga code.

Maybe as a broader question: what could I use for profiling my game? (i.e.: mainly for games that are not tied to the vertical sync and could have a main loop taking multiple frames, thus making for color 0 marker bars inconvenient).
Many thanks, as always!
remz is offline  
Old 02 June 2024, 23:00   #2
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,198
Bartman's VSCode extension has something like that built in: https://marketplace.visualstudio.com...ss.amiga-debug

I usually just use a couple of counters displayed on screen, since that also works when running on real HW. Exactly like here: https://eab.abime.net/showthread.php?t=116656&page=3

Also just looking at the DMA debugger visualization usually gives a very good idea of where chip cycles are spent. I have also occasionally done custom builds of WinUAE to do custom profiling (though that was for "whdload speedup projects", not A500 512+512 stuff).
paraj is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
WinUAE crashes when I want to add a hard drive (WinUAE 4.9.1 64 bit / Windows 10 21H2 Madusch support.WinUAE 2 12 May 2022 21:04
WinuAE + ADF-copy __ Read Real AmigaFloppy with WinUAE Giants support.WinUAE 14 02 May 2019 11:17
C profiler Aprof or other arti Coders. C/C++ 8 10 March 2018 21:15
Recently changed WinUAE folder, now getting Arabuusimiehet.WinUAE error Foebane support.WinUAE 9 09 September 2016 20:03
Profiler Tiddlypeeps Coders. General 3 19 April 2010 06:53

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:15.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08174 seconds with 14 queries