Created
May 17, 2014 22:36
-
-
Save diederikh/c576c2eb13347d302de6 to your computer and use it in GitHub Desktop.
Log all Objective-C method calls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 options: | |
1. set the environment variable NSObjCMessageLoggingEnabled to YES. This will write a log of all message sends in the folder /tmp/msgSends-xxx. | |
2. #import <objc/runtime.h> | |
call (void)instrumentObjcMessageSends(YES); to enable | |
call (void)instrumentObjcMessageSends(NO); to disable. All output is logged to /tmp/msgSends... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment