tools/go/callgraph
Alan Donovan a9651d6ad7 cmd/callgraph: add -algo=static and -algo=cha options.
"static" ignores dynamic calls altogether.

"cha" uses Class Hierarchy Analysis, which assumes that a
dynamic call may dispatch to any func or method that satisfies
the type.

Both these algorithms can work on partial programs,
e.g. libraries without a main function or tests.

(This feature was requested after my talk last night.)

+ Tests.

LGTM=sameer
R=sameer, minux
CC=golang-codereviews, gri
https://golang.org/cl/176780043
2014-11-21 11:07:56 -05:00
..
cha cmd/callgraph: add -algo=static and -algo=cha options. 2014-11-21 11:07:56 -05:00
rta go/callgraph/rta: rename from go/rta 2014-11-14 11:02:44 -05:00
static cmd/callgraph: add -algo=static and -algo=cha options. 2014-11-21 11:07:56 -05:00
callgraph.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
util.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00