Skip to content

nielsbot/qnd-profiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published