7 years ago.

How to profile with gprof in mbedOS 5?

I need to profile my application, so the best approach I found is gprof, but can't compile my project for profiling with mbed tools.

I did succed to enable profiling with gprof*, but I still have a problem, actually I don't want to profile all files, howa can we exclude some files from being profiled?

  • To enable gprof you need to add -pg in your debug profile and remove another option "-fomit-frame-pointer", because both are incompatible.
posted by abdou sen 21 Mar 2017
Be the first to answer this question.