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.
12434 Discussions

Can't generate gmon.out with gprof

Altera_Forum
Honored Contributor II
1,201 Views

Hi all, 

 

I'm trying to run GPROF on my project (Quartus Prime 18.0). 

I have added the "enable_gprof" and "enable_exit" flags in the BSP, and I can see it does pass the -pg option when building. 

I have -g and -O0 as well. 

The application runs but I cannot get any gmon.out file output. 

 

What am I missing? I have been stuck with this for hours and can't seem to figure it out...
2 Replies
Altera_Forum
Honored Contributor II
185 Views

Perfect. Thanks! Just to complement the answer: in my case, where I am using the good old GNU Make and didn't want to modify the makefiles, the "-pg" flag was added to the hold process through the (environment variable) CFLAGS (for the object bluestacks (https://bluestacks.vip/) textnow (https://textnow.vip/) photomath (https://photomath.vip/) generation) and LDFLAGS for the linking stage.

dsmirnov
New Contributor I
185 Views

Hi! I have the same problem, did you solve it?

Did you create your project through the GUI?

Reply