1

In the Instruments app, an invert call tree can be inspected in various profiling modules. Is it possible to view such a call tree to a particular selector? I know there are callee and caller in Assistant Editor now, but is there a plugin that generates such a tree? Or did I missed some features in Xcode?

ZhangChn
  • 3,154
  • 21
  • 41
  • I assume you could do this yourself with `dtrace` although I am not familiar enough to give an example. http://www.bignerdranch.com/blog/hooked-on-dtrace-part-1/ and http://dtrace.org/blogs/brendan/2011/10/10/top-10-dtrace-scripts-for-mac-os-x/ might be a decent intro. – sbooth Jun 27 '14 at 02:36
  • 1
    So far as I know, `dtrace` provides runtime profiling, not static analysis. My wish is simple, perform project-wide search recursively, until every branch hit something like `-viewDidLoad` or `-application:didFinishLaunchingWithOptions:`, of course notification, blocks and many other corner cases should be handled in order to get a neat result. – ZhangChn Jun 27 '14 at 02:51
  • I think what your looking for is an llvm call graph see: http://stackoverflow.com/questions/5373714/generate-calling-graph-for-c-code – GayleDDS Jun 27 '14 at 04:15
  • I didn't know you were after static analysis; the question referenced by @GayleDDS seems to be the best approach – sbooth Jun 27 '14 at 11:24

0 Answers0