m177312
m177312

Reputation: 1209

Check if a method is being executed during runtime

Is it possible to check if a particular method is being executed at a particular point of time on iOS ?

For example, I want to know if the method sampleMethod is being run at 1 minute after the app starts executing?

Upvotes: 2

Views: 471

Answers (2)

dsgriffin
dsgriffin

Reputation: 68596

Can't you use _cmd for that?

NSLog(@"Method name = %@", NSStringFromSelector(_cmd));

Upvotes: 2

Using breakpoints and/or the NSLog(NSString) function inside your mehthods.

Upvotes: 1

Related Questions