Quick and Dirty iOS Profiler
Objective-C C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Profiler.h
Profiler.mm
README

README

TO USE

1. Add Profiler.h and Profiler.mm to your project.
2. Add PROFILING=1 to your "preprocessor macros" setting

3. Profile functions of interest using PSTART and PEND:

	void FunctionToProfile(arg0, arg1, ...)
	{
		PSTART

		// some code I want to profile

		PEND
	}

4. The profiler dump will be printed when your program exits, OR do this in your debugger

	GDB	'call (void)ProfilerExitFunction()'
	LLDB	'expr (void)ProfilerExitFunction()'

	which will get you your profiler dump in your debug console.