For ex- You have TextEdit Application, when you save the file , I want to know which objective-c methods get called. I have headers file of Textedit using class-dump.
Is there any is way to know which of these methods (which we output from class-dump) gets called at runtime?
is there any way to do it with dtrace??
Assuming Objective-C methods translate directly to user-space function calls, you should be able to use the DTrace pid provider: