1
0
mirror of https://github.com/golang/go synced 2024-11-18 19:24:39 -07:00
go/cmd/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
..
testdata/src/pkg cmd/callgraph: a utility for dumping the callgraph of a Go program. 2014-11-12 17:36:22 -05:00
main_test.go cmd/callgraph: fix build 2014-11-12 16:49:47 -08:00
main.go cmd/callgraph: add -algo=static and -algo=cha options. 2014-11-21 11:07:56 -05:00