evilsong / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Curl error : host problem #436

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I run the command to test and get a curl error:
pprof --text /bin/ls ls.prof
Using local file /bin/ls.
Gathering CPU profile from http://ls.prof/pprof/profile?seconds=30 for 30 
seconds to
  /env/home/user/pprof/ls.1338800955.ls.prof
Be patient...

curl: (6) Couldn't resolve host 'ls.prof'
Failed to get profile: curl 'http://ls.prof/pprof/profile?seconds=30' > 
/env/home/user/pprof/.tmp.ls.1338800955.ls.prof: Aucun fichier ou dossier de ce 
type.

I run it on a Debian 6 VM.

for info:
uname -a
Linux vminf57 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64 
GNU/Linux

I hope you can help me.

Jeremy

Original issue reported on code.google.com by semh...@gmail.com on 4 Jun 2012 at 9:15

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
i have the exact same problem to 

Original comment by Amin.Hed...@gmail.com on 1 Jan 2013 at 4:40

GoogleCodeExporter commented 9 years ago
the exact same problem

Original comment by kellyhav...@gmail.com on 16 Mar 2013 at 9:34

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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