Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time scale off when exporting to speedscope #430

Closed
jnwatson opened this issue Aug 2, 2021 · 0 comments · Fixed by #434
Closed

Time scale off when exporting to speedscope #430

jnwatson opened this issue Aug 2, 2021 · 0 comments · Fixed by #434

Comments

@jnwatson
Copy link

jnwatson commented Aug 2, 2021

Example program:

import time

def do_something():
    time.sleep(0.1)
    print('wake')

def main():
    while True:
        time.sleep(0.9)
        do_something()

if __name__ == '__main__':
    main()

Run py-spy with:
py-spy record -f speedscope -i -d 5 -p 2311089

When the output is imported into speedscope, it looks like the absolute times are off by 100x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant