浏览代码

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

Docs are stale, -http flag now supports host:port.
Jaana B. Dogan 8 年前
父节点
当前提交
d127b8fbfc
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 3
    3
      README.md
  2. 2
    2
      internal/driver/cli.go

+ 3
- 3
README.md 查看文件

79
 
79
 
80
 ## Run pprof via a web interface
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
 The preceding command should automatically open your web browser at
89
 The preceding command should automatically open your web browser at

+ 2
- 2
internal/driver/cli.go 查看文件

265
    pprof [options] [binary] <source> ...
265
    pprof [options] [binary] <source> ...
266
 
266
 
267
 Omit the format and provide the "-http" flag to get an interactive web
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
 various views of a profile.
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
 Details:
273
 Details:
274
 `
274
 `