Created
June 4, 2012 07:40
-
-
Save hezi/2866995 to your computer and use it in GitHub Desktop.
Log all messages in Objective-C
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
#import <objc/runtime.h> | |
(void)instrumentObjcMessageSends(YES); //to start | |
(void)instrumentObjcMessageSends(NO); //to stop | |
// print result: tail -100f /tmp/msgSends-XXXX | |
// Source: http://bonto.ch/blog/2012/05/30/log-all-messages-in-objective-c/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment