vmprof-python icon indicating copy to clipboard operation
vmprof-python copied to clipboard

Getting no stats when using --lines

Open nikhilh-20 opened this issue 8 years ago • 0 comments

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.

nikhilh-20 avatar Nov 07 '17 14:11 nikhilh-20