1
0
mirror of https://github.com/golang/go synced 2024-11-05 14:46:11 -07:00
go/cmd
Robert Griesemer 03e3f0cf81 go.tools/cmd/gotype: make gotype use go/build
This CL makes gotype usable again. Removed -r
(recursive) mode; use go/build to determine
the correct set of Go files when processing
a directory. The -v (verbose) mode now prints
some basic stats (duration, number of files,
lines, and lines/s).

Thoroughly restructured the code.

Applying gotype -v -a . to the go/types directory:
128.94141ms (40 files, 12008 lines, 93127 lines/s)

On a 2.8 GHz Quad-Core Intel Xeon, 800 MHz DDR2 FB-DIMM,
with go/types built with the (interal) debug flag set to
false. There's still quite a bit of room for performance
improvement in all parts of the code since no tuning has
been done.

R=golang-dev, adonovan
CC=golang-dev
https://golang.org/cl/19930043
2013-10-31 10:01:58 -07:00
..
cover go.tools/cmd/cover: for range loops might contain function literals 2013-10-11 10:32:36 -07:00
godoc go.tools/cmd/godoc: search go.tools/cmd before $GOROOT/cmd 2013-10-18 10:42:41 +09:00
gotype go.tools/cmd/gotype: make gotype use go/build 2013-10-31 10:01:58 -07:00
html2article go.tools/cmd/html2article: move command from go.blog repository 2013-09-27 10:40:53 +10:00
oracle go.tools/oracle: change -mode argument into subcommand. 2013-09-25 14:34:39 -04:00
ssadump go.tools/ssa: CreateTestMainPackage: synthesize test driver as a package ("testmain") not 'main' function. 2013-10-23 18:07:53 -04:00
vet go.tools/go/types: nil is not a constant + misc. cleanups 2013-10-09 14:17:25 -07:00