|
@@ -110,7 +110,7 @@ func parseFlags(o *plugin.Options) (*source, []string, error) {
|
110
|
110
|
return nil, nil, err
|
111
|
111
|
}
|
112
|
112
|
if cmd != nil && *flagHTTP != "" {
|
113
|
|
- return nil, nil, fmt.Errorf("--http is not compatible with an output format on the command line")
|
|
113
|
+ return nil, nil, fmt.Errorf("-http is not compatible with an output format on the command line")
|
114
|
114
|
}
|
115
|
115
|
|
116
|
116
|
si := pprofVariables["sample_index"].value
|
|
@@ -268,7 +268,7 @@ Omit the format and provide the "-http" flag to get an interactive web
|
268
|
268
|
interface at the specified host:port that can be used to navigate through
|
269
|
269
|
various views of a profile.
|
270
|
270
|
|
271
|
|
- pprof -http <host:port> [options] [binary] <source> ...
|
|
271
|
+ pprof -http [host]:[port] [options] [binary] <source> ...
|
272
|
272
|
|
273
|
273
|
Details:
|
274
|
274
|
`
|
|
@@ -292,8 +292,10 @@ var usageMsgSrc = "\n\n" +
|
292
|
292
|
|
293
|
293
|
var usageMsgVars = "\n\n" +
|
294
|
294
|
" Misc options:\n" +
|
295
|
|
- " -http host:port Provide web based interface at host:port\n" +
|
296
|
|
- " -tools Search path for object tools\n" +
|
|
295
|
+ " -http Provide web based interface at host:port.\n" +
|
|
296
|
+ " Host is optional and 'localhost' by default.\n" +
|
|
297
|
+ " Port is optional and a randomly available port by default.\n" +
|
|
298
|
+ " -tools Search path for object tools\n" +
|
297
|
299
|
"\n" +
|
298
|
300
|
" Legacy convenience options:\n" +
|
299
|
301
|
" -inuse_space Same as -sample_index=inuse_space\n" +
|