How to get an overview of class interactions, call-graphs, process analysis etc.?
How to get an overview of class interactions, call-graphs, process analysis etc.?
- Subject: How to get an overview of class interactions, call-graphs, process analysis etc.?
- From: Riehm Stephen <email@hidden>
- Date: Sun, 5 Oct 2008 12:37:44 +0200
Hi,
I'm hoping someone here might have a tip or two for generating static
(or dynamic!) call-graphs for Objective-C / Cocoa programs.
Background: one of the Cocoa programs I'm working on has grown to the
size where it no longer fits comfortably in my head.
The data structures are simple enough but the interactions between the
classes are just getting too intricate. I spend all my time searching
for the right source files instead of actually solving problems by
editing them :-(
XCode has its Quick-Class-Diagram feature, which is "nice" but doesn't
really solve my problem. I know which classes I've got, I just don't
know whether they are being used in the right combinations or
sequences (well, obviously their NOT connected properly, otherwise I
wouldn't be debugging, would I? :-)
Another solution could be a little "cross references" window in XCode
which dynamically shows an overview of who calls the class and/or
method where the cursor is, and who gets called by the class and/or
method. A single click (or even better, keyboard shortcut) and you
could jump to the next or previous bit of code in "the process" your
working on, as opposed to the the current class (a'la cmd-option-up-
arrow).
On a similar note, getting a trace of method calls and returns from a
running program (similar to what Instruments DOES but doesn't display)
would also be useful, but I can't find a trace of which methods are
being called, other than going through the process step by step in the
debugger :-( Yeah it works, but I'd rather have an image that I can
print out, ponder over and get the bird's eye view from.
Does anyone here have some tips for getting this kind of code analysis
graphically with XCode, gdb, dtrace and Co.?
Thanks,
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden