Skip to content

Tachyon flamegraph: Replaying binary file doesn’t show time/rate in sidebar #154060

Description

@JostMigenda

Bug report

Bug description:

As discussed with @pablogsal during EuroPython sprints:

python -m profiling.sampling run --binary -o baseline.bin flamegraph_demo.py
python -m profiling.sampling replay --flamegraph -o flamegraph.html baseline.bin

The resulting flamegraph.html shows duration and samples/sec as “--” in sidebar.

This is a fairly minor UX issue; e.g., hovering over the flamegraph gives values for the total time of _run_code, which is a good proxy for the total duration. However, if it is not too difficult to reconstruct these quantities from the binary format, it would be nice to fix this.

CPython versions tested on:

3.15

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-profilingtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions