forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

new psp profiling tutorial

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
zytek



Joined: 25 Oct 2007
Posts: 3
Location: Poland

PostPosted: Wed Jan 23, 2008 1:45 am    Post subject: new psp profiling tutorial Reply with quote

Hello,
I've just finished a simple tutorial showing how to profile code on PSP, using both gprof and hardware profiler. Feel free to check it and comment.

This is my first such "publication" so please be tolerant.

http://zytek.nuxi.pl/psp/pspprofilingV1.pdf

I've msg oobles so he could put it into Tutorial section of ps2dev.org
_________________
zytek
Back to top
View user's profile Send private message Visit poster's website
snow



Joined: 15 Dec 2007
Posts: 31

PostPosted: Wed Jan 23, 2008 7:03 am    Post subject: Reply with quote

This is excellent, thanks. The more documentation the better. I needed info on profiling and this fits the bill.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Wed Jan 23, 2008 9:34 am    Post subject: Reply with quote

Nice,

One thing though you might be interested in, if you are running psplinkusb you can use the command profmode with either g or t option to specify global or thread profiler. In that mode you can access the profiler registers from user mode, no need to ever be in kernel mode to do it and as a bonus if you set thread mode it will actually context switch the registers so you only get a count of what that thread is doing.

Once you have enabled either mode (and done a psplink reset) then in your code you can call sceKernelReferThreadProfiler or sceKernelReferGlobalProfiler to get a pointer to the registers.
Back to top
View user's profile Send private message
zytek



Joined: 25 Oct 2007
Posts: 3
Location: Poland

PostPosted: Wed Jan 23, 2008 9:49 am    Post subject: Reply with quote

Thanks for feedback, I really appreciate it.

TyRaNiD thanks, I must take a closer look at it and update this tutorial afterwards.
_________________
zytek
Back to top
View user's profile Send private message Visit poster's website
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Wed Jan 23, 2008 12:50 pm    Post subject: Reply with quote

Thanks zytek,
Very neat.
One question, could you possibly make this available as a plain text file.
Love the PDF, but when I have the most time to read, I only have a PSP.

Thanks TyRaNiDe (pronounced like cyanide),
How big you can hack a very small machine! ;)

Now I've finally go to try psplink again.
A lot of the time I'm using the serial port myself,
but I've underestimated it's advantage.
Art.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
Decinoge



Joined: 12 Nov 2007
Posts: 6

PostPosted: Tue Feb 12, 2008 1:56 am    Post subject: Reply with quote

Thanks.

This was a great tutorial and it will become very helpful in the future.
I am simple new coder (coding C++ for less than 6 months) and i understood it perfectly (on the extend of my interest and my need).

Keep up the good work and be proud of this tutorial.
_________________
none
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group