sawsen11 / jrfonseca

Automatically exported from code.google.com/p/jrfonseca
0 stars 0 forks source link

gprof2dot.py: command not found #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I saved the gprof2dot..py file using the "save link as" into the directory 
where my executable is saved.
2. Then I executed: 
root@ahuq-kitchen:/home/ahuq/system/server/MappingServer# 
ls gprof2dot.py 
gprof2dot.py 

3. Then I did: gprof MappingServer | gprof2dot.py -f perf | dot -Tpng -o 
output.png

What is the expected output? What do you see instead?
The .png was not produced. Instead I got: 
gprof2dot.py: command not found

What version of the product are you using? On what operating system?
I think the gprof2dot.py version is: __version__ = "1.0". 
Distributor ID: Ubuntu
Description:    Ubuntu 10.10
Release:    10.10
Codename:   maverick

Please provide any additional information below.
If I put: "apt-get install python graphviz"
Then the output: 

Reading package lists... Done
Building dependency tree       
Reading state information... Done
graphviz is already the newest version.
python is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

Original issue reported on code.google.com by dodul...@gmail.com on 31 Oct 2011 at 3:26

GoogleCodeExporter commented 9 years ago
Try:

  gprof MappingServer | ./gprof2dot.py -f perf | dot -Tpng -o output.png

instead.

Original comment by Jose.R.F...@gmail.com on 31 Oct 2011 at 3:32

GoogleCodeExporter commented 9 years ago

Original comment by Jose.R.F...@gmail.com on 1 Nov 2011 at 9:30