vmprof / vmprof-python

vmprof - a statistical program profiler
http://vmprof.com
Other
433 stars 54 forks source link

vmprofshow doesn't work #222

Open LoHiaufung opened 4 years ago

LoHiaufung commented 4 years ago

Accord the README, the output should be:

oberstet@thinkpad-t430s:~/scm/vmprof-python$ vmprofshow vmprof_cpuburn.dat
100.0%  <module>  100.0%  tests/cpuburn.py:1
100.0% .. test  100.0%  tests/cpuburn.py:35
100.0% .... burn  100.0%  tests/cpuburn.py:26
 99.2% ...... _iterate  99.2%  tests/cpuburn.py:19
 97.7% ........ _iterate  98.5%  tests/cpuburn.py:19
 22.9% .......... _next_rand  23.5%  tests/cpuburn.py:14
 22.9% ............ JIT code  100.0%  0x7fa7dba57a10
 74.7% .......... JIT code  76.4%  0x7fa7dba57a10
  0.1% .......... JIT code  0.1%  0x7fa7dba583b0
  0.5% ........ _next_rand  0.5%  tests/cpuburn.py:14
  0.0% ........ JIT code  0.0%  0x7fa7dba583b0

But my output is

100.0%  <module>  100.0%  vmprof/test/cpuburn.py:1
100.0% .. test  100.0%  vmprof/test/cpuburn.py:36
100.0% .... burn  100.0%  vmprof/test/cpuburn.py:27
100.0% ...... _iterate  100.0%  vmprof/test/cpuburn.py:20
  0.0% ........ _next_rand  0.0%  vmprof/test/cpuburn.py:15

my output lost the jit code informatioin. Is the JIT off by default, should I do something to turn on? Or I do something wrong? I am running a 32bit pypy.

ubuntu@VM-0-8-ubuntu:~/vmprof-python$ pypy --version
Python 2.7.10 (5.1.2+dfsg-1~16.04, Jun 16 2016, 17:35:57)
[PyPy 5.1.2 with GCC 5.3.1 20160413]