Closed GoogleCodeExporter closed 9 years ago
I think that it cannot find ls.prof in the current directory so it thinks you
are trying to load a remote profile and tries to search for it. For example:
david@hatch:~/gperftools$ pprof --text /bin/ls foo
Using local file /bin/ls.
Gathering CPU profile from http://foo/pprof/profile?seconds=30 for 30 seconds to
/home/david/pprof/ls.1356276363.foo
Be patient...
sh: curl: not found
Failed to get profile: curl 'http://foo/pprof/profile?seconds=30' >
/home/david/pprof/.tmp.ls.1356276363.foo: No such file or directory
Original comment by chapp...@gmail.com
on 23 Dec 2012 at 3:26
i have the exact same problem to
Original comment by Amin.Hed...@gmail.com
on 1 Jan 2013 at 4:40
the exact same problem
Original comment by kellyhav...@gmail.com
on 16 Mar 2013 at 9:34
[deleted comment]
the exact same problem.
I think the .prof isn't created properly with the CPUPROFILE=out.prof ./a.out
command.
I have this problem when compiling with -lprofiler or using env
LD_PRELOAD="/usr/lib/libprofiler.so" ./a.out, but not when inserting
ProfilerStart() and ProfilerStop() into the code
Original comment by eyal...@gmail.com
on 3 Apr 2014 at 8:57
eyalore, lets create brand-new bug and find out what's not working in your
case. On my box everything works as expected.
Original comment by alkondratenko
on 18 May 2014 at 6:14
same problem here.
[jcheng@jcW530 gperftools]$ pprof /bin/ls ls.prof
Using local file /bin/ls.
Gathering CPU profile from http://ls.prof/pprof/profile?seconds=30 for 30
seconds to
/home/jcheng/pprof/ls.1401882036.ls.prof
Be patient...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: ls.prof; Name or service not known
Failed to get profile: curl 'http://ls.prof/pprof/profile?seconds=30' >
/home/jcheng/pprof/.tmp.ls.1401882036.ls.prof: No such file or directory
Original comment by Jian.Che...@gmail.com
on 4 Jun 2014 at 11:41
Original issue reported on code.google.com by
semh...@gmail.com
on 4 Jun 2012 at 9:15