How to implement IOP performance counters ?

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

How to implement IOP performance counters ?

Post by Shazz »

Hello,

As the IOP is the palce where multiple threads share the CPU time (sound, file I/O, network,...) I'd like to implement a kind of performance counters debuglib as the EE provides... But I have no clue of how doing that in a good way... or as it could be done usually using the VBL for example (eh eh those stinky borders...)

Using IOP timers ? Using thread based interruptions (they exist ?)

Thanks for your ideas :D

Shazz
- TiTAN Art Division -
http://www.titandemo.org
ole
Posts: 92
Joined: Sat May 08, 2004 11:14 pm
Location: Czech Republic

Post by ole »

There is the int GetSystemTime(iop_sys_clock_t *sys_clock);
function defined in the iop/include/thbase.h....
Post Reply