Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Usage

  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 macros:

void FunctionToProfile(arg0, arg1, ...) {
    PSTART
    // some code I want to profile
   
    PEND
 } 
  1. 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.

About

Quick and Dirty iOS Profiler

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages