我正在努力摆脱与Golang的合作.

--文本似乎很好,但其他大多数选项都不起作用.

例如,使用pdf:

root@ubuntu:/home/user/IdeaProjects/go_projects/src# go tool pprof --pdf ./src /tmp/profile578584736/cpu.pprof > out.pdf
sh: 1: dot: not found
root@ubuntu:/home/user/IdeaProjects/go_projects/src# 

对于gv:

root@ubuntu:/home/user/IdeaProjects/go_projects/src# go tool pprof --gv ./src /tmp/profile578584736/cpu.pprof 
sh: 1: dot: not found
gv -scale 0
Can't exec "gv": No such file or directory at /usr/local/go/pkg/tool/linux_386/pprof line 719.
root@ubuntu:/home/user/IdeaProjects/go_projects/src# 

我需要在围棋中做些什么改变才能让它工作吗?

推荐答案

您需要安装dotgv.我看你在用Ubuntu,试试apt-get install graphviz gv

Go相关问答推荐

Go GORM创建表,但不创建列

困扰围棋官方巡回赛的S建议所有方法都使用同一类型的接收器

Golang XML密钥名称冲突

CURL和Postman HTTP POST工作,但Golang请求失败,状态为400

为什么没有正确生成这些元组?

迭代字符串并用映射值替换原始字符串中的值的惯用方法

不接受来自 stdin 的重复输入

htmx 表单 + gin 无法正确读取请求正文

Go Programming Language书上的例子server2错了吗?

Neptune 在连接到启用 IAM 的 Neptune 实例时抛出握手错误错误

helm :将 YAML 转换为 JSON 时出错:yaml:第 xx 行:未找到预期的密钥

Go泛型:无效的复合文字

Go 信号处理程序不处理终端窗口关闭

如何使用 Docker 引擎 SDK 和 Golang 运行 docker 挂载卷

无法访问 Go 模块导入的远程存储库

在 Golang 中使用 OR 条件验证 struct 的两个字段

从另一个没有重复的确定性 int

如何使用带有Electron 表格 ID、Electron 表格名称、表格 ID 和值的 golang 在 googlesheet 中插入数据

Go:如何通过 GIN-Router 从 AWS S3 将文件作为二进制流发送到浏览器?

如何动态解析 Go Fiber 中的请求正文?