linux下运行py脚本

osiji 2013-03-12 04:12:24
大家好,我请教一个问题。
gprof2dot.py是一个能生产dot文件的脚本,dot可以用graphviz生成函数调用关系图,但是我在redhat下执行gprof2dot.py脚本时,没反应,停在那,这是怎么回事呢。
如果大家想了解gprof2dot.py可以查看http://gprof2dot.jrfonseca.googlecode.com/git/gprof2dot.py
我是把这个脚本放到linux的一个目录下,然后执行./gprof2dot,然后光标就一直停在那,请问大家,这怎么解决呢?弄了一天了
...全文
229 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
richard28530 2013-03-14
  • 打赏
  • 举报
回复
richard@debian:/media/code$ ./gprof2dot.py --help Usage: gprof2dot.py [options] [file] ... Options: --version show program's version number and exit -h, --help show this help message and exit -o FILE, --output=FILE output filename [stdout] -n PERCENTAGE, --node-thres=PERCENTAGE eliminate nodes below this threshold [default: 0.5] -e PERCENTAGE, --edge-thres=PERCENTAGE eliminate edges below this threshold [default: 0.1] -f FORMAT, --format=FORMAT profile format: prof, callgrind, oprofile, hprof, sysprof, shark, sleepy, aqtime, pstats, or xperf [default: prof] -c THEME, --colormap=THEME color map: color, pink, gray, or bw [default: color] -s, --strip strip function parameters, template parameters, and const modifiers from demangled C++ function names -w, --wrap wrap function names -z ROOT, --root=ROOT prun call graph to show only decedents of specified root function -l LEAF, --leaf=LEAF prun call graph to show only ancestors of specified leaf function --skew=THEME_SKEW skew the colorization curve. Values < 1.0 give more variety to lower percentages. Value > 1.0 give less variety to lower percentages
JoeBlackzqq 2013-03-12
  • 打赏
  • 举报
回复
写个最简单的py脚本,看看是否能正常运行。 将你的py脚本分段运行,看看是不是哪里出错了。一直停在那里,说明程序在运行,没有运行完。

23,125

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧