http://127.0.0.1:8848/debug/pprof/threadcreate # 创建新 OS 线程的堆栈跟踪 http://127.0.0.1:8848/debug/pprof/trace # 当前程序执行的跟踪 后缀加上?debug=1可以可视化查看对应描述,不加就可以下载成 profile 文件,使用 pprof 命令可视化查看对应数据。 第四步,使用go tool pprof -http=:6001 profile命令...
使用go tool pprof命令 打开命令行,输入命令:go tool pprof http://localhost:13001/debug/pprof/profile,此时命令行会卡出,并打印类似如下信息: C:\Users\Administrator>go tool pprof http://localhost:13001/debug/pprof/profile Fetching profile from http://localhost:13001/debug/pprof/profile Please wait.....
使用pprof 分析perf 数据 2019-12-25 15:59 − 对于perf 工具提供的指标数据,我们可以使用自带的report 以及script 进行查看,同时对于火焰图使用 flamescope 也挺不错,但是如果需要跨平台分析使用pprof结合perf_data_converter 就很方便了,以下 是一个简单的集成使用 perf_data_conve... 荣锋亮 0 1927 gola...
打开命令⾏,输⼊命令: go tool pprof http://localhost:13001/debug/pprof/profile,此时命令⾏会卡出,并打印类似如下信息:C:\Users\Administrator>go tool pprof http://localhost:13001/debug/pprof/profile Fetching profile from http://localhost:13001/debug/pprof/profile Please wait... (30s)Saved...