Skip to content

Very large output html file for longer runs #385

@jpkline

Description

@jpkline

Hello, many thanks for this tool, the IPython visualization is especially useful.

I am using pyinstrument to profile a long-running (~25min) fitting function. After completion, the output html file is saved to the disk. I noticed that process of saving the output file was using almost 10GB of RAM and took 10-15mins to complete. Afterwards, the finished file was too big to open with my browser at 1.1GB.

Is there a way to restrict the size of an html output or remove frames that took barely any time compared to the main function?

Thanks!


pyinstrument version: 5.0.3
Python version: 3.12.0

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