0

My application is running on CentOS,and when I run curl localhost:port/debug/pprof/profile > some.pprof,and run go tool pprof some.pprof, it works. But When I use scp copying the some.pprof file to my mac and run go tool pprof some.pprof,it doesn't work any more,command top display only 1 line in which flat and sum both are 100% and the last row is the name of my application rather than the name of methods invoked. Isn't the pprof file cross platform or something I've misused?

4

1 回答 1

0

正如 Adrian 所说,运行 pprof 需要二进制文件。所以从服务器下载二进制文件,把它放到服务器上的相同路径中,它就可以工作了

于 2017-08-16T03:09:29.930 回答