-
Add
profiler.handprofiler.mmto your project. -
Add
PROFILING=1to your "Preprocessor macros" setting -
Profile functions of interest using
PSTARTandPENDmacros:
void FunctionToProfile(arg0, arg1, ...) {
PSTART
// some code I want to profile
PEND
} -
The profiler dump will be printed when your program exits, OR do this in your debugger:
GDB
call (void)ProfilerExitFunction()LLDB
expr (void)ProfilerExitFunction()This will get you your profiler dump in your debug console.