1
0
mirror of https://github.com/golang/go synced 2024-09-30 16:08:36 -06:00

cmd/oracle: add pointsto, whicherrs to help message

Also, remove stale example.

Change-Id: Ifa1123b9dca49c991a16ef35eb7227847878c657
Reviewed-on: https://go-review.googlesource.com/19474
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Alan Donovan 2016-02-11 17:20:40 -05:00
parent 3440805344
commit 78e666a894

View File

@ -66,8 +66,10 @@ The mode argument determines the query to perform:
freevars show free variables of selection
implements show 'implements' relation for selected type or method
peers show send/receive corresponding to selected channel op
pointsto show variables to which the selected pointer may point
referrers show all refs to entity denoted by selected identifier
what show basic information about the selected syntax node
whicherrs show possible values of the selected error variable
The user manual is available here: http://golang.org/s/oracle-user-manual
@ -77,8 +79,6 @@ Describe the syntax at offset 530 in this file (an import spec):
% oracle -pos=src/golang.org/x/tools/cmd/oracle/main.go:#530 describe \
golang.org/x/tools/cmd/oracle
Print the callgraph of the trivial web-server in JSON format:
% oracle -format=json callstack $GOROOT/src/net/http/triv.go
` + loader.FromArgsUsage
var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")