dtwd74916 2019-05-08 11:07
浏览 352

go工具pprof无法为本地库设置二进制路径

The have tried to take a pprof dump of a part of our server code that we are trying to optimize. I'm not using the net/http/pprof, rather relying on runtime/pprof. My whole setup works correctly and I'm able to use the pprof dump on the server machine.

However when I scp the pprof dump to my local machine - in order to use web since I don't want to install graphviz on my servers, pprof starts showing me this warning:

Local symbolization failed for contacts: open /home/deploy/amigo/bin/contacts: no such file or directory
Some binary filenames not available. Symbolization may be incomplete.
Try setting PPROF_BINARY_PATH to the search path for local binaries.
File: contacts
Type: cpu
Time: May 8, 2019 at 3:27pm (IST)
Duration: 1.06s, Total samples = 1.07s (101.25%)
Entering interactive mode (type "help" for commands, "o" for options)

I copied the original bin from the server and try setting the PPROF_BINARY_PATH. But it still doesn't help. What am I doing wrong here?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Oracle触发器记录修改前后的字段值
    • ¥100 为什么这个恒流源电路不能恒流?
    • ¥15 有偿求跨组件数据流路径图
    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 lna设计 源简并电感型共源放大器