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?