I found out that the irq handler wasn't called, and fixed it by using irqEnable(IRQ_HBLANK);
But I still have 0ms for all functions
(the hblanks variable is incrmented correctly)
Profiling arm/nds program
Re: Profiling arm/nds program
Last edited by LeRodeur on Fri Aug 24, 2012 5:00 pm, edited 1 time in total.
Re: Profiling arm/nds program
WHOOPS I forgot a very important line. Add this line before irqSet()
Code: Select all
irqEnable(IRQ_HBLANK);
Re: Profiling arm/nds program
Oh look you beat me to it.
Re: Profiling arm/nds program
I just edited my post, even after enabling irq hblank (the variable hablnaks is incremented correctly) i still have 0ms everywhere :s
Re: Profiling arm/nds program
It's probable that the loop is being optimized out. I added some real code and it works fine for me.
Re: Profiling arm/nds program
I updated the code at http://mtheall.com/profile.tar.gz
Re: Profiling arm/nds program
It works! It seems my ndslite button was a bit hard to press, so it didn't save the log and kept the old one thanks for everything!
Hope you guys will get the -pg option to work someday
Hope you guys will get the -pg option to work someday
Who is online
Users browsing this forum: No registered users and 2 guests