1
0
mirror of https://github.com/golang/go synced 2024-11-05 14:36:11 -07:00
go/cmd/gotype
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
..
doc.go go.tools/cmd/gotype: make gotype use go/build 2013-10-31 10:01:58 -07:00
gotype.go go.tools/cmd/gotype: make gotype use go/build 2013-10-31 10:01:58 -07:00