blob: 6ad0e77243ee3d381db850cd99de4cab6ec242ef [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
Jiri Simsa3540e3a2014-12-26 07:54:09 -080034 -vanadium.i18n_catalogue=
35 18n catalogue files to load, comma separated
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080036 -veyron.credentials=
37 directory to use for storing security credentials
Robin Thellend8fea01c2014-12-11 13:48:10 -080038 -veyron.namespace.root=[/ns.dev.v.io:8101]
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080039 local namespace root; can be repeated to provided multiple roots
40 -veyron.vtrace.cache_size=1024
41 The number of vtrace traces to store in memory.
Jiri Simsa7fc22712015-02-03 11:27:02 -080042 -veyron.vtrace.collect_regexp=
43 Spans and annotations that match this regular expression will trigger trace
44 collection.
45 -veyron.vtrace.dump_on_shutdown=true
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080046 If true, dump all stored traces on runtime shutdown.
47 -veyron.vtrace.sample_rate=0
48 Rate (from 0.0 to 1.0) to sample vtrace traces.
49 -vmodule=
50 comma-separated list of pattern=N settings for file-filtered logging
Todd Wang0d12d712014-10-06 17:25:41 -070051
52Debug Glob
53
54Returns all matching entries from the namespace.
55
56Usage:
57 debug glob <pattern> ...
58
59<pattern> is a glob pattern to match.
60
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080061Debug Vtrace
62
63Returns matching vtrace traces (or all stored traces if no ids are given).
64
65Usage:
66 debug vtrace <name> [id ...]
67
68<name> is the name of a vtrace object. [id] is a vtrace trace id.
69
Todd Wang0d12d712014-10-06 17:25:41 -070070Debug Logs
71
72Accesses log files
73
74Usage:
75 debug logs <command>
76
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080077The debug logs commands are:
Todd Wang0d12d712014-10-06 17:25:41 -070078 read Reads the content of a log file object.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080079 size Returns the size of a log file object.
Todd Wang0d12d712014-10-06 17:25:41 -070080
81Debug Logs Read
82
83Reads the content of a log file object.
84
85Usage:
86 debug logs read [flags] <name>
87
88<name> is the name of the log file object.
89
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080090The debug logs read flags are:
91 -f=false
92 When true, read will wait for new log entries when it reaches the end of the
93 file.
94 -n=-1
95 The number of log entries to read.
96 -o=0
97 The position, in bytes, from which to start reading the log file.
98 -v=false
99 When true, read will be more verbose.
Todd Wang0d12d712014-10-06 17:25:41 -0700100
101Debug Logs Size
102
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800103Returns the size of a log file object.
Todd Wang0d12d712014-10-06 17:25:41 -0700104
105Usage:
106 debug logs size <name>
107
108<name> is the name of the log file object.
109
110Debug Stats
111
112Accesses stats
113
114Usage:
115 debug stats <command>
116
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800117The debug stats commands are:
118 read Returns the value of stats objects.
119 watch Returns a stream of all matching entries and their values as they
120 change.
Todd Wang0d12d712014-10-06 17:25:41 -0700121
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800122Debug Stats Read
Todd Wang0d12d712014-10-06 17:25:41 -0700123
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800124Returns the value of stats objects.
Todd Wang0d12d712014-10-06 17:25:41 -0700125
126Usage:
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800127 debug stats read [flags] <name> ...
Todd Wang0d12d712014-10-06 17:25:41 -0700128
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800129<name> is the name of a stats object, or a glob pattern to match against stats
130object names.
Todd Wang0d12d712014-10-06 17:25:41 -0700131
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800132The debug stats read flags are:
133 -raw=false
134 When true, the command will display the raw value of the object.
135 -type=false
136 When true, the type of the values will be displayed.
Todd Wang0d12d712014-10-06 17:25:41 -0700137
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800138Debug Stats Watch
Todd Wang0d12d712014-10-06 17:25:41 -0700139
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800140Returns a stream of all matching entries and their values as they change.
Todd Wang0d12d712014-10-06 17:25:41 -0700141
142Usage:
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800143 debug stats watch [flags] <pattern> ...
Todd Wang0d12d712014-10-06 17:25:41 -0700144
145<pattern> is a glob pattern to match.
146
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800147The debug stats watch flags are:
148 -raw=false
149 When true, the command will display the raw value of the object.
150 -type=false
151 When true, the type of the values will be displayed.
Todd Wang0d12d712014-10-06 17:25:41 -0700152
153Debug Pprof
154
155Accesses profiling data
156
157Usage:
158 debug pprof <command>
159
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800160The debug pprof commands are:
161 run Runs the pprof tool.
162 proxy Runs an http proxy to a pprof object.
Todd Wang0d12d712014-10-06 17:25:41 -0700163
164Debug Pprof Run
165
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800166Runs the pprof tool.
Todd Wang0d12d712014-10-06 17:25:41 -0700167
168Usage:
169 debug pprof run [flags] <name> <profile> [passthru args] ...
170
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800171<name> is the name of the pprof object. <profile> the name of the profile to
172use.
Todd Wang0d12d712014-10-06 17:25:41 -0700173
174All the [passthru args] are passed to the pprof tool directly, e.g.
175
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800176$ debug pprof run a/b/c heap --text $ debug pprof run a/b/c profile -gv
Todd Wang0d12d712014-10-06 17:25:41 -0700177
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800178The debug pprof run flags are:
Jiri Simsa7fc22712015-02-03 11:27:02 -0800179 -pprofcmd=v23 go tool pprof
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800180 The pprof command to use.
Todd Wang0d12d712014-10-06 17:25:41 -0700181
182Debug Pprof Proxy
183
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800184Runs an http proxy to a pprof object.
Todd Wang0d12d712014-10-06 17:25:41 -0700185
186Usage:
187 debug pprof proxy <name>
188
189<name> is the name of the pprof object.
190
191Debug Help
192
193Help with no args displays the usage of the parent command.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800194
Todd Wang0d12d712014-10-06 17:25:41 -0700195Help with args displays the usage of the specified sub-command or help topic.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800196
Todd Wang0d12d712014-10-06 17:25:41 -0700197"help ..." recursively displays help for all commands and topics.
198
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800199The output is formatted to a target width in runes. The target width is
200determined by checking the environment variable CMDLINE_WIDTH, falling back on
201the terminal width from the OS, falling back on 80 chars. By setting
202CMDLINE_WIDTH=x, if x > 0 the width is x, if x < 0 the width is unlimited, and
203if x == 0 or is unset one of the fallbacks is used.
204
Todd Wang0d12d712014-10-06 17:25:41 -0700205Usage:
206 debug help [flags] [command/topic ...]
207
208[command/topic ...] optionally identifies a specific sub-command or help topic.
209
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800210The debug help flags are:
211 -style=text
212 The formatting style for help output, either "text" or "godoc".
Todd Wang0d12d712014-10-06 17:25:41 -0700213*/
214package main