Skip to content

Time scale off when exporting to speedscope #430

Closed
@jnwatson

Description

@jnwatson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions