Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 1 | // This file was auto-generated via go generate. |
| 2 | // DO NOT UPDATE MANUALLY |
| 3 | |
| 4 | /* |
| 5 | Command-line tool for interacting with the debug server. |
| 6 | |
| 7 | Usage: |
| 8 | debug <command> |
| 9 | |
| 10 | The debug commands are: |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 11 | glob Returns all matching entries from the namespace. |
| 12 | vtrace Returns vtrace traces. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 13 | logs Accesses log files |
| 14 | stats Accesses stats |
| 15 | pprof Accesses profiling data |
| 16 | help Display help for commands or topics |
| 17 | Run "debug help [command]" for command usage. |
| 18 | |
| 19 | The global flags are: |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 20 | -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 Simsa | 3540e3a | 2014-12-26 07:54:09 -0800 | [diff] [blame] | 34 | -vanadium.i18n_catalogue= |
| 35 | 18n catalogue files to load, comma separated |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 36 | -veyron.credentials= |
| 37 | directory to use for storing security credentials |
Robin Thellend | 8fea01c | 2014-12-11 13:48:10 -0800 | [diff] [blame] | 38 | -veyron.namespace.root=[/ns.dev.v.io:8101] |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 39 | 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 Simsa | 7fc2271 | 2015-02-03 11:27:02 -0800 | [diff] [blame] | 42 | -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 Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 46 | 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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 51 | |
| 52 | Debug Glob |
| 53 | |
| 54 | Returns all matching entries from the namespace. |
| 55 | |
| 56 | Usage: |
| 57 | debug glob <pattern> ... |
| 58 | |
| 59 | <pattern> is a glob pattern to match. |
| 60 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 61 | Debug Vtrace |
| 62 | |
| 63 | Returns matching vtrace traces (or all stored traces if no ids are given). |
| 64 | |
| 65 | Usage: |
| 66 | debug vtrace <name> [id ...] |
| 67 | |
| 68 | <name> is the name of a vtrace object. [id] is a vtrace trace id. |
| 69 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 70 | Debug Logs |
| 71 | |
| 72 | Accesses log files |
| 73 | |
| 74 | Usage: |
| 75 | debug logs <command> |
| 76 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 77 | The debug logs commands are: |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 78 | read Reads the content of a log file object. |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 79 | size Returns the size of a log file object. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 80 | |
| 81 | Debug Logs Read |
| 82 | |
| 83 | Reads the content of a log file object. |
| 84 | |
| 85 | Usage: |
| 86 | debug logs read [flags] <name> |
| 87 | |
| 88 | <name> is the name of the log file object. |
| 89 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 90 | The 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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 100 | |
| 101 | Debug Logs Size |
| 102 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 103 | Returns the size of a log file object. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 104 | |
| 105 | Usage: |
| 106 | debug logs size <name> |
| 107 | |
| 108 | <name> is the name of the log file object. |
| 109 | |
| 110 | Debug Stats |
| 111 | |
| 112 | Accesses stats |
| 113 | |
| 114 | Usage: |
| 115 | debug stats <command> |
| 116 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 117 | The 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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 121 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 122 | Debug Stats Read |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 123 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 124 | Returns the value of stats objects. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 125 | |
| 126 | Usage: |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 127 | debug stats read [flags] <name> ... |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 128 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 129 | <name> is the name of a stats object, or a glob pattern to match against stats |
| 130 | object names. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 131 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 132 | The 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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 137 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 138 | Debug Stats Watch |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 139 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 140 | Returns a stream of all matching entries and their values as they change. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 141 | |
| 142 | Usage: |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 143 | debug stats watch [flags] <pattern> ... |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 144 | |
| 145 | <pattern> is a glob pattern to match. |
| 146 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 147 | The 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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 152 | |
| 153 | Debug Pprof |
| 154 | |
| 155 | Accesses profiling data |
| 156 | |
| 157 | Usage: |
| 158 | debug pprof <command> |
| 159 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 160 | The debug pprof commands are: |
| 161 | run Runs the pprof tool. |
| 162 | proxy Runs an http proxy to a pprof object. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 163 | |
| 164 | Debug Pprof Run |
| 165 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 166 | Runs the pprof tool. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 167 | |
| 168 | Usage: |
| 169 | debug pprof run [flags] <name> <profile> [passthru args] ... |
| 170 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 171 | <name> is the name of the pprof object. <profile> the name of the profile to |
| 172 | use. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 173 | |
| 174 | All the [passthru args] are passed to the pprof tool directly, e.g. |
| 175 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 176 | $ debug pprof run a/b/c heap --text $ debug pprof run a/b/c profile -gv |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 177 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 178 | The debug pprof run flags are: |
Jiri Simsa | 7fc2271 | 2015-02-03 11:27:02 -0800 | [diff] [blame] | 179 | -pprofcmd=v23 go tool pprof |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 180 | The pprof command to use. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 181 | |
| 182 | Debug Pprof Proxy |
| 183 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 184 | Runs an http proxy to a pprof object. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 185 | |
| 186 | Usage: |
| 187 | debug pprof proxy <name> |
| 188 | |
| 189 | <name> is the name of the pprof object. |
| 190 | |
| 191 | Debug Help |
| 192 | |
| 193 | Help with no args displays the usage of the parent command. |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 194 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 195 | Help with args displays the usage of the specified sub-command or help topic. |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 196 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 197 | "help ..." recursively displays help for all commands and topics. |
| 198 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 199 | The output is formatted to a target width in runes. The target width is |
| 200 | determined by checking the environment variable CMDLINE_WIDTH, falling back on |
| 201 | the terminal width from the OS, falling back on 80 chars. By setting |
| 202 | CMDLINE_WIDTH=x, if x > 0 the width is x, if x < 0 the width is unlimited, and |
| 203 | if x == 0 or is unset one of the fallbacks is used. |
| 204 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 205 | Usage: |
| 206 | debug help [flags] [command/topic ...] |
| 207 | |
| 208 | [command/topic ...] optionally identifies a specific sub-command or help topic. |
| 209 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 210 | The debug help flags are: |
| 211 | -style=text |
| 212 | The formatting style for help output, either "text" or "godoc". |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 213 | */ |
| 214 | package main |