Sampling binary profiles do not record the profiling mode
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 35.9k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
Bug report
Bug description:
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.
CPython versions tested on:
3.16
Operating systems tested on:
Linux
Linked PRs
- gh-154105
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với các lệnh profiling.sampling run và replay trong báo cáo, sử dụng các ví dụ về CPU và wall-time để tái hiện siêu dữ liệu bị thiếu và phép so sánh không khớp. Đọc phần xử lý tiêu đề của binary profile và các entry point của replay và differential flamegraph. Hoàn thành khi chế độ profiling được giữ lại trong binary và có sẵn để replay hoặc differential validation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- performance
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 25/100