vmprof-python
vmprof-python copied to clipboard
Getting no stats when using --lines
I've a simple program timer.py that I'm using to test vmprof features:
import time
timer = time.time()
while time.time() - timer < 5:
pass
print ('Done')
I run vmprof as: python -m vmprof --lines -o coverage.dat timer.py
This gives coverage.dat which is a binary file.
I run vmprofshow as: vmprofshow --lines coverage.dat but I don't get any output.
I'm using Python 2.7.12 on Linux Ubuntu 4.10.0 i686 GNU/Linux
vmprof doesn't give statistics for programs that run less than 1 second so, for this program I expected vmprof to give me statistics on which line is executed in which file and the number of times each line was excecuted.