tools/go
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
..
buildutil go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
callgraph cmd/callgraph: add -algo=static and -algo=cha options. 2014-11-21 11:07:56 -05:00
exact go.tools/go/types, exact: fix build for 1.2 2014-06-12 12:46:21 -07:00
gccgoimporter go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
gcimporter go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
importer go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
loader tools: minor comment fixes. 2014-11-13 12:34:25 -05:00
pointer go/pointer: fix two crashes caused by 'print()'. 2014-11-20 13:33:20 -05:00
ssa go/ssa: report memory consumption separated by phase in stdlib_test 2014-11-13 13:03:59 -05:00
types go/types: don't panic if DefaultImport==nil, until we actually use it. 2014-11-17 15:24:12 -05:00
vcs go.tools: fix various minor issues found by go vet 2014-05-19 08:47:28 -07:00