doubeizhong5178 2016-09-06 15:56
浏览 29

我可以下载堆转储以在以后运行pprof吗?

I'm trying to find a way to store the heap data from pprof so that I can share it, view it later, attach to issues and so on. My attempts so far have not worked.

If I run

go tool pprof http://my-server/debug/pprof/heap and then run web, I get a full graph like I expect. However, If I dowload the file:

wget -O heapDump http://my-server/debug/pprof/heap

and try go tool pprof heapDump, it seems it can't do everything it needs to. I only get a very limited graph:

enter image description here

I have tried adding ?debug=1 and playing with different values, but none of them seem to work properly.

  • 写回答

1条回答 默认 最新

  • dongweng6241 2019-07-19 07:11
    关注

    go tool pprof -png http://my-server/debug/pprof/heap > out.png stores a proper graph for me in the out.png file.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度