Page 2 of 2
Re: Profiling arm/nds program
Posted: Fri Aug 24, 2012 4:52 pm
by LeRodeur
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)
Re: Profiling arm/nds program
Posted: Fri Aug 24, 2012 4:56 pm
by mtheall
WHOOPS I forgot a very important line. Add this line before irqSet()
Re: Profiling arm/nds program
Posted: Fri Aug 24, 2012 4:57 pm
by mtheall
Oh look you beat me to it.
Re: Profiling arm/nds program
Posted: Fri Aug 24, 2012 5:01 pm
by LeRodeur
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
Posted: Fri Aug 24, 2012 5:03 pm
by mtheall
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
Posted: Fri Aug 24, 2012 5:06 pm
by mtheall
Re: Profiling arm/nds program
Posted: Fri Aug 24, 2012 5:10 pm
by LeRodeur
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