Sfoglia il codice sorgente

Update docs to reflect the changes for the -http flag (#180)

Docs are stale, -http flag now supports host:port.
Jaana B. Dogan 8 anni fa
parent
commit
d127b8fbfc
2 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 3
    3
      README.md
  2. 2
    2
      internal/driver/cli.go

+ 3
- 3
README.md Vedi File

@@ -79,11 +79,11 @@ Type 'help' for available commands/options.
79 79
 
80 80
 ## Run pprof via a web interface
81 81
 
82
-If the `-http=port` option is specified, pprof starts a web server at
83
-the specified port that provides an interactive web-based interface to pprof.
82
+If the `-http="host:port"` option is specified, pprof starts a web server at
83
+the specified host:port that provides an interactive web-based interface to pprof.
84 84
 
85 85
 ```
86
-pprof -http=[port] [main_binary] profile.pb.gz
86
+pprof -http=[host:port] [main_binary] profile.pb.gz
87 87
 ```
88 88
 
89 89
 The preceding command should automatically open your web browser at

+ 2
- 2
internal/driver/cli.go Vedi File

@@ -265,10 +265,10 @@ to generate various views of a profile
265 265
    pprof [options] [binary] <source> ...
266 266
 
267 267
 Omit the format and provide the "-http" flag to get an interactive web
268
-interface at the specified port that can be used to navigate through
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 <port> [options] [binary] <source> ...
271
+   pprof -http <host:port> [options] [binary] <source> ...
272 272
 
273 273
 Details:
274 274
 `