[英]The pprof heap report displays raw memory addresses
Following this guide http://golang.org/pkg/net/http/pprof/ , i'm trying to look at the heap report. 按照本指南http://golang.org/pkg/net/http/pprof/ ,我尝试查看堆报告。 When i navigate to the appropriate url, this is what is displayed:
当我导航到适当的URL时,将显示以下内容:
I tried this with ActivePerl, StrawberryPerl and the Perl coming with MSYS tools. 我使用ActivePerl,StrawberryPerl和MSYS工具随附的Perl进行了尝试。 What is the issue here?
这是什么问题?
The output of the net/http/pprof package is best used with go tool pprof
. net / http / pprof软件包的输出最好与
go tool pprof
。 If your server is listening on port 6060, you'll want a command like go tool pprof http://localhost:6060/debug/pprof/heap
. 如果您的服务器正在侦听端口6060,则需要使用诸如
go tool pprof http://localhost:6060/debug/pprof/heap
。 There's an explanation of how to use the pprof tool at http://blog.golang.org/profiling-go-programs , which is linked from the net/http/pprof package docs. 从net / http / pprof软件包文档链接到http://blog.golang.org/profiling-go-programs ,其中有关于如何使用pprof工具的说明。
If you're really interested in trying to read the output yourself, you can add ?debug=1
to the url you tried before - but I can't recommend it. 如果您真的想尝试自己读取输出,可以将
?debug=1
添加到之前尝试的url中-但我不建议这样做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.