Need to get going with profiling.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need to get going with profiling.

236 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mhjerde on Thu May 19 03:13:18 MST 2011
I'm trying to get started with profiling.

Thinking a good first step would be to have the debugger generate profiling information. So I add the -pg flag, but this just results in a lot of error messages "undefined reference to `__gnu_mcount_nc'".

I've searched around but can't find out how to get started. For me, the ideal thing would probably be some sort of "profiling for dummies" resource. Any pointers?
0 Kudos
3 Replies

117 Views
blmckinley
Contributor I

I have selected profiling with gprof and am also receiving
undefined reference to `__gnu_mcount_nc'
errors at link time.

Any suggestions are appreciated.

0 Kudos

88 Views
blmckinley
Contributor I

Thank you - I had already found that. I had assumed they would come in some kind of SDK from NXP's universe.... I can't believe the MCUXpresso IDE environment supports profiling, but the user is forced to generate their own source for it.

If I use the linked article, how to get the gprof source programs, should I just copy and paste them into my project?

What about this alternative that at least lives on github? https://github.com/OP-TEE/optee_os/tree/master/lib/libutee/arch/arm/gprof
In my mind at least that code is open source and source-controlled.

I appreciate your help.
Bruce

0 Kudos