Consider not emitting debug trace-events in release builds
未關閉
適合新手
debugging
- 主要語言
- Rust
- 星號
- 115
- 分支
- 84
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 15
描述
https://github.com/0xMiden/compiler/blob/6195153c50b689648a635390e948496ce324c5f3/codegen/masm/src/events.rs#L19-L24
Debug traces are currently emitted for all build profiles, even `release`. Consider not emitting them in `release` builds.
Context: Migrating debug events to traces (#1320) adds overhead of 2 cycles.
貢獻指南
研究方向
該 issue 指向 codegen/masm 模組中的 events.rs 檔案。檢查 Rust 中的條件編譯屬性或建置設定檔偵測,以控制除錯追蹤事件的輸出。查看專案的 Cargo.toml 中的設定檔定義,並觀察其他功能是如何切換的。目標是確保事件僅在除錯/開發建置中發出,而不在發行建置中發出。
由索引模型根據 Issue 內容生成。
評估
- 領域
- compilers, performance
- Issue 類型
- 重構
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 冷清
- 描述清晰度
- 描述清楚
- 新手友好度
- 65/100