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 |
| 34 | -veyron.credentials= |
| 35 | directory to use for storing security credentials |
Robin Thellend | 8fea01c | 2014-12-11 13:48:10 -0800 | [diff] [blame] | 36 | -veyron.namespace.root=[/ns.dev.v.io:8101] |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 37 | 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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 46 | |
| 47 | Debug Glob |
| 48 | |
| 49 | Returns all matching entries from the namespace. |
| 50 | |
| 51 | Usage: |
| 52 | debug glob <pattern> ... |
| 53 | |
| 54 | <pattern> is a glob pattern to match. |
| 55 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 56 | Debug Vtrace |
| 57 | |
| 58 | Returns matching vtrace traces (or all stored traces if no ids are given). |
| 59 | |
| 60 | Usage: |
| 61 | debug vtrace <name> [id ...] |
| 62 | |
| 63 | <name> is the name of a vtrace object. [id] is a vtrace trace id. |
| 64 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 65 | Debug Logs |
| 66 | |
| 67 | Accesses log files |
| 68 | |
| 69 | Usage: |
| 70 | debug logs <command> |
| 71 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 72 | The debug logs commands are: |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 73 | read Reads the content of a log file object. |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 74 | size Returns the size of a log file object. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 75 | |
| 76 | Debug Logs Read |
| 77 | |
| 78 | Reads the content of a log file object. |
| 79 | |
| 80 | Usage: |
| 81 | debug logs read [flags] <name> |
| 82 | |
| 83 | <name> is the name of the log file object. |
| 84 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 85 | The 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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 95 | |
| 96 | Debug Logs Size |
| 97 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 98 | Returns the size of a log file object. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 99 | |
| 100 | Usage: |
| 101 | debug logs size <name> |
| 102 | |
| 103 | <name> is the name of the log file object. |
| 104 | |
| 105 | Debug Stats |
| 106 | |
| 107 | Accesses stats |
| 108 | |
| 109 | Usage: |
| 110 | debug stats <command> |
| 111 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 112 | The 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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 116 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 117 | Debug Stats Read |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 118 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 119 | Returns the value of stats objects. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 120 | |
| 121 | Usage: |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 122 | debug stats read [flags] <name> ... |
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 | <name> is the name of a stats object, or a glob pattern to match against stats |
| 125 | object names. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 126 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 127 | The 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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 132 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 133 | Debug Stats Watch |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 134 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 135 | 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] | 136 | |
| 137 | Usage: |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 138 | debug stats watch [flags] <pattern> ... |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 139 | |
| 140 | <pattern> is a glob pattern to match. |
| 141 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 142 | The 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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 147 | |
| 148 | Debug Pprof |
| 149 | |
| 150 | Accesses profiling data |
| 151 | |
| 152 | Usage: |
| 153 | debug pprof <command> |
| 154 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 155 | The debug pprof commands are: |
| 156 | run Runs the pprof tool. |
| 157 | proxy Runs an http proxy to a pprof object. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 158 | |
| 159 | Debug Pprof Run |
| 160 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 161 | Runs the pprof tool. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 162 | |
| 163 | Usage: |
| 164 | debug pprof run [flags] <name> <profile> [passthru args] ... |
| 165 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 166 | <name> is the name of the pprof object. <profile> the name of the profile to |
| 167 | use. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 168 | |
| 169 | All the [passthru args] are passed to the pprof tool directly, e.g. |
| 170 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 171 | $ 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] | 172 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 173 | The debug pprof run flags are: |
| 174 | -pprofcmd=veyron go tool pprof |
| 175 | The pprof command to use. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 176 | |
| 177 | Debug Pprof Proxy |
| 178 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 179 | Runs an http proxy to a pprof object. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 180 | |
| 181 | Usage: |
| 182 | debug pprof proxy <name> |
| 183 | |
| 184 | <name> is the name of the pprof object. |
| 185 | |
| 186 | Debug Help |
| 187 | |
| 188 | Help with no args displays the usage of the parent command. |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 189 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 190 | 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] | 191 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 192 | "help ..." recursively displays help for all commands and topics. |
| 193 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 194 | The output is formatted to a target width in runes. The target width is |
| 195 | determined by checking the environment variable CMDLINE_WIDTH, falling back on |
| 196 | the terminal width from the OS, falling back on 80 chars. By setting |
| 197 | CMDLINE_WIDTH=x, if x > 0 the width is x, if x < 0 the width is unlimited, and |
| 198 | if x == 0 or is unset one of the fallbacks is used. |
| 199 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 200 | Usage: |
| 201 | debug help [flags] [command/topic ...] |
| 202 | |
| 203 | [command/topic ...] optionally identifies a specific sub-command or help topic. |
| 204 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 205 | The debug help flags are: |
| 206 | -style=text |
| 207 | The formatting style for help output, either "text" or "godoc". |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 208 | */ |
| 209 | package main |