Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Profiling microC application

Altera_Forum
Honored Contributor II
962 Views

Hi, 

 

I've written a MicroC application that uses iniche stack, 

due to performance issues I need to profile it. 

 

I've read AN391 (http://www.altera.com/literature/an/an391.pdf) and was able to use the profiler on a non microC application. 

when I've tried to use it on a microC application no gmon.out file was generated. 

 

AN391 state that the 'main' function must return, but 'OsStart' never returns. 

 

Is there a way to profile it? 

 

thanks!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
99 Views

In a regular gcc/gprof environment, you can directly invoke the function that writes the gmon.out. The function is called _mcleanup(). 

Not sure if it works in NIOS2 gcc environment, but it's worth a shot.
Altera_Forum
Honored Contributor II
99 Views

Do you have enough on a indication of CPU load or do you need much more detailed information?

Reply