Skip to content

Getting no stats when using --lines #162

Open

Description

@nikhilh-20

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions