| View previous topic :: View next topic |
| Author |
Message |
zytek

Joined: 25 Oct 2007 Posts: 3 Location: Poland
|
Posted: Wed Jan 23, 2008 1:45 am Post subject: new psp profiling tutorial |
|
|
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 |
|
 |
snow
Joined: 15 Dec 2007 Posts: 31
|
Posted: Wed Jan 23, 2008 7:03 am Post subject: |
|
|
| This is excellent, thanks. The more documentation the better. I needed info on profiling and this fits the bill. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Wed Jan 23, 2008 9:34 am Post subject: |
|
|
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 |
|
 |
zytek

Joined: 25 Oct 2007 Posts: 3 Location: Poland
|
Posted: Wed Jan 23, 2008 9:49 am Post subject: |
|
|
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 |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Wed Jan 23, 2008 12:50 pm Post subject: |
|
|
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 |
|
 |
Decinoge
Joined: 12 Nov 2007 Posts: 6
|
Posted: Tue Feb 12, 2008 1:56 am Post subject: |
|
|
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 |
|
 |
|