blob: d611d341e935761afb08054e86ff110bfb7e6a25 [file] [log] [blame]
Todd Wang0d12d712014-10-06 17:25:41 -07001// This file was auto-generated via go generate.
2// DO NOT UPDATE MANUALLY
3
4/*
5Command-line tool for interacting with the debug server.
6
7Usage:
8 debug <command>
9
10The debug commands are:
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080011 glob Returns all matching entries from the namespace.
12 vtrace Returns vtrace traces.
Todd Wang0d12d712014-10-06 17:25:41 -070013 logs Accesses log files
14 stats Accesses stats
15 pprof Accesses profiling data
16 help Display help for commands or topics
17Run "debug help [command]" for command usage.
18
19The global flags are:
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080020 -alsologtostderr=true
21 log to standard error as well as files
22 -log_backtrace_at=:0
23 when logging hits line file:N, emit a stack trace
24 -log_dir=
25 if non-empty, write log files to this directory
26 -logtostderr=false
27 log to standard error instead of files
28 -max_stack_buf_size=4292608
29 max size in bytes of the buffer to use for logging stack traces
30 -stderrthreshold=2
31 logs at or above this threshold go to stderr
32 -v=0
33 log level for V logs
34 -veyron.credentials=
35 directory to use for storing security credentials
Robin Thellend8fea01c2014-12-11 13:48:10 -080036 -veyron.namespace.root=[/ns.dev.v.io:8101]
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080037 local namespace root; can be repeated to provided multiple roots
38 -veyron.vtrace.cache_size=1024
39 The number of vtrace traces to store in memory.
40 -veyron.vtrace.dump_on_shutdown=false
41 If true, dump all stored traces on runtime shutdown.
42 -veyron.vtrace.sample_rate=0
43 Rate (from 0.0 to 1.0) to sample vtrace traces.
44 -vmodule=
45 comma-separated list of pattern=N settings for file-filtered logging
Todd Wang0d12d712014-10-06 17:25:41 -070046
47Debug Glob
48
49Returns all matching entries from the namespace.
50
51Usage:
52 debug glob <pattern> ...
53
54<pattern> is a glob pattern to match.
55
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080056Debug Vtrace
57
58Returns matching vtrace traces (or all stored traces if no ids are given).
59
60Usage:
61 debug vtrace <name> [id ...]
62
63<name> is the name of a vtrace object. [id] is a vtrace trace id.
64
Todd Wang0d12d712014-10-06 17:25:41 -070065Debug Logs
66
67Accesses log files
68
69Usage:
70 debug logs <command>
71
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080072The debug logs commands are:
Todd Wang0d12d712014-10-06 17:25:41 -070073 read Reads the content of a log file object.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080074 size Returns the size of a log file object.
Todd Wang0d12d712014-10-06 17:25:41 -070075
76Debug Logs Read
77
78Reads the content of a log file object.
79
80Usage:
81 debug logs read [flags] <name>
82
83<name> is the name of the log file object.
84
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080085The debug logs read flags are:
86 -f=false
87 When true, read will wait for new log entries when it reaches the end of the
88 file.
89 -n=-1
90 The number of log entries to read.
91 -o=0
92 The position, in bytes, from which to start reading the log file.
93 -v=false
94 When true, read will be more verbose.
Todd Wang0d12d712014-10-06 17:25:41 -070095
96Debug Logs Size
97
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080098Returns the size of a log file object.
Todd Wang0d12d712014-10-06 17:25:41 -070099
100Usage:
101 debug logs size <name>
102
103<name> is the name of the log file object.
104
105Debug Stats
106
107Accesses stats
108
109Usage:
110 debug stats <command>
111
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800112The debug stats commands are:
113 read Returns the value of stats objects.
114 watch Returns a stream of all matching entries and their values as they
115 change.
Todd Wang0d12d712014-10-06 17:25:41 -0700116
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800117Debug Stats Read
Todd Wang0d12d712014-10-06 17:25:41 -0700118
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800119Returns the value of stats objects.
Todd Wang0d12d712014-10-06 17:25:41 -0700120
121Usage:
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800122 debug stats read [flags] <name> ...
Todd Wang0d12d712014-10-06 17:25:41 -0700123
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800124<name> is the name of a stats object, or a glob pattern to match against stats
125object names.
Todd Wang0d12d712014-10-06 17:25:41 -0700126
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800127The debug stats read flags are:
128 -raw=false
129 When true, the command will display the raw value of the object.
130 -type=false
131 When true, the type of the values will be displayed.
Todd Wang0d12d712014-10-06 17:25:41 -0700132
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800133Debug Stats Watch
Todd Wang0d12d712014-10-06 17:25:41 -0700134
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800135Returns a stream of all matching entries and their values as they change.
Todd Wang0d12d712014-10-06 17:25:41 -0700136
137Usage:
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800138 debug stats watch [flags] <pattern> ...
Todd Wang0d12d712014-10-06 17:25:41 -0700139
140<pattern> is a glob pattern to match.
141
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800142The debug stats watch flags are:
143 -raw=false
144 When true, the command will display the raw value of the object.
145 -type=false
146 When true, the type of the values will be displayed.
Todd Wang0d12d712014-10-06 17:25:41 -0700147
148Debug Pprof
149
150Accesses profiling data
151
152Usage:
153 debug pprof <command>
154
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800155The debug pprof commands are:
156 run Runs the pprof tool.
157 proxy Runs an http proxy to a pprof object.
Todd Wang0d12d712014-10-06 17:25:41 -0700158
159Debug Pprof Run
160
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800161Runs the pprof tool.
Todd Wang0d12d712014-10-06 17:25:41 -0700162
163Usage:
164 debug pprof run [flags] <name> <profile> [passthru args] ...
165
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800166<name> is the name of the pprof object. <profile> the name of the profile to
167use.
Todd Wang0d12d712014-10-06 17:25:41 -0700168
169All the [passthru args] are passed to the pprof tool directly, e.g.
170
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800171$ debug pprof run a/b/c heap --text $ debug pprof run a/b/c profile -gv
Todd Wang0d12d712014-10-06 17:25:41 -0700172
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800173The debug pprof run flags are:
174 -pprofcmd=veyron go tool pprof
175 The pprof command to use.
Todd Wang0d12d712014-10-06 17:25:41 -0700176
177Debug Pprof Proxy
178
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800179Runs an http proxy to a pprof object.
Todd Wang0d12d712014-10-06 17:25:41 -0700180
181Usage:
182 debug pprof proxy <name>
183
184<name> is the name of the pprof object.
185
186Debug Help
187
188Help with no args displays the usage of the parent command.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800189
Todd Wang0d12d712014-10-06 17:25:41 -0700190Help with args displays the usage of the specified sub-command or help topic.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800191
Todd Wang0d12d712014-10-06 17:25:41 -0700192"help ..." recursively displays help for all commands and topics.
193
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800194The output is formatted to a target width in runes. The target width is
195determined by checking the environment variable CMDLINE_WIDTH, falling back on
196the terminal width from the OS, falling back on 80 chars. By setting
197CMDLINE_WIDTH=x, if x > 0 the width is x, if x < 0 the width is unlimited, and
198if x == 0 or is unset one of the fallbacks is used.
199
Todd Wang0d12d712014-10-06 17:25:41 -0700200Usage:
201 debug help [flags] [command/topic ...]
202
203[command/topic ...] optionally identifies a specific sub-command or help topic.
204
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800205The debug help flags are:
206 -style=text
207 The formatting style for help output, either "text" or "godoc".
Todd Wang0d12d712014-10-06 17:25:41 -0700208*/
209package main