You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by rx...@apache.org on 2020/03/20 17:03:09 UTC
[pulsar-client-go] branch master updated: Fix pprof typo (#198)
This is an automated email from the ASF dual-hosted git repository.
rxl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-go.git
The following commit(s) were added to refs/heads/master by this push:
new 1fe15f5 Fix pprof typo (#198)
1fe15f5 is described below
commit 1fe15f5f7fad78c430228a239620903be0b632d6
Author: 冉小龙 <rx...@apache.org>
AuthorDate: Sat Mar 21 01:03:04 2020 +0800
Fix pprof typo (#198)
* Fix pprof typo
Signed-off-by: xiaolong.ran <rx...@apache.org>
* View the status of pprof in the web
Signed-off-by: xiaolong.ran <rx...@apache.org>
* fix comments
Signed-off-by: xiaolong.ran <rx...@apache.org>
* fix comments
Signed-off-by: xiaolong.ran <rx...@apache.org>
* fix ci error
Signed-off-by: xiaolong.ran <rx...@apache.org>
* fix comments
Signed-off-by: xiaolong.ran <rx...@apache.org>
* fix comments
Signed-off-by: xiaolong.ran <rx...@apache.org>
---
perf/pulsar-perf-go.go | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/perf/pulsar-perf-go.go b/perf/pulsar-perf-go.go
index 3ceff71..3cd1d52 100644
--- a/perf/pulsar-perf-go.go
+++ b/perf/pulsar-perf-go.go
@@ -104,6 +104,7 @@ func RunProfiling(stop <-chan struct{}) {
}()
}
+// use `http://addr/debug/pprof` to access the browser
// use `go tool pprof http://addr/debug/pprof/profile` to get pprof file(cpu info)
// use `go tool pprof http://addr/debug/pprof/heap` to get inuse_space file
func serveProfiling(addr string, stop <-chan struct{}) error {
@@ -118,8 +119,9 @@ func serveProfiling(addr string, stop <-chan struct{}) error {
}()
fmt.Printf("Starting pprof server at: %s\n", addr)
- fmt.Printf(" use go tool pprof http://%s/debug/pprof/prof to get pprof file(cpu info)\n", addr)
- fmt.Printf(" use go tool pprof http://%s/debug/pprof/heap to get inuse_space file\n", addr)
+ fmt.Printf(" use `http://%s/debug/pprof` to access the browser\n", addr)
+ fmt.Printf(" use `go tool pprof http://%s/debug/pprof/profile` to get pprof file(cpu info)\n", addr)
+ fmt.Printf(" use `go tool pprof http://%s/debug/pprof/heap` to get inuse_space file\n", addr)
fmt.Println()
return s.ListenAndServe()