go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

go tool pprof cannot open trace-1201134430.pprof file

Open maojinhua opened this issue 2 years ago • 4 comments

不好意思,打扰了,有个pprof相关的问题想请教下

问题: 在线上执行两次 kill -usr2 命令后获取到相关pprof采集数据

core-1-block-1201134430.pprof core-1-mem-1201134430.pprof core-1-threadcreate-1201134430.pprof core-1-cpu-1201134430.pprof core-1-mutex-1201134430.pprof core-1-trace-1201134430.pprof

在本地使用go tool pprof -http=:9991 命令打开pprof文件,基本上都正常打开。只有 core-1-trace-1201134430.pprof 这个文件无法打开

go tool pprof -http=:9991 core-1-trace-1201134430.pprof 报错信息如下: core-1-trace-1201134430.pprof: parsing profile: unrecognized profile format failed to fetch any source profiles

maojinhua avatar Dec 01 '22 06:12 maojinhua

请问要怎么打开 trace-xx.pprof呢?直接用 go tool pprof就可以了吗?还是要别的命令打开才可以呢

maojinhua avatar Dec 01 '22 06:12 maojinhua

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


How do I open trace-xx.pprof? Is it possible to use go tool pprof directly? Or do I need another command to open it?

Issues-translate-bot avatar Dec 01 '22 06:12 Issues-translate-bot

You can come to the go-zero community group to consult.

MarkJoyMa avatar Dec 01 '22 12:12 MarkJoyMa

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Dec 02 '23 01:12 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Mar 05 '24 01:03 github-actions[bot]