The sampling binary header does not record --mode. Replay and differential flamegraphs therefore cannot describe or validate how the baseline was collected.
python -m profiling.sampling run --mode cpu --binary -o baseline.bin demo.py
python -m profiling.sampling replay --flamegraph -o replay.html baseline.bin
python -m profiling.sampling run --mode wall --diff-flamegraph baseline.bin -o diff.html demo.py
The replay has no CPU-mode metadata, and the differential run silently compares a CPU baseline with a wall-time profile. These measurements are not comparable.
Activity
pythongh-154090: Preserve modes across replay outputs
pythongh-154090: Store profiling mode in binary files
pythongh-154090: Preserve modes across replay outputs
pythongh-154090: Preserve binary capture configuration
pythongh-154090: Regenerate global identifiers
pythongh-154090: Store profiling mode in binary files
pythongh-154090: Preserve modes across replay outputs
pythongh-154090: Preserve binary capture configuration
pythongh-154090: Regenerate global identifiers
gh-154090: Store profiling mode and capture settings in binary profil…
[3.15] gh-154090: Store profiling mode and capture settings in binary…