Repository navigation
feat: warn at enable time when a trace marker sits in a per-frame Unity message - #2280
Conversation
…ty message Trace on Update/FixedUpdate/LateUpdate/OnGUI filled history before testers saw a status, and docs only recommended conditional lines after the fact. The enable notice states that fact without claiming overflow will happen. Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds trace-mode warnings for Unity per-frame message methods. It normalizes resolved method names, includes the configured history limit, merges the warning into pause-point enable results, and adds unit and end-to-end coverage. ChangesPer-frame trace warning flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The PR adds an enable-time notice for trace markers on per-frame Unity messages without changing runtime tracing behavior. No actionable merge-blocking risk remains beyond normal checks and review. Sequence Diagram(s)sequenceDiagram
participant Test
participant PausePointUseCase
participant PausePointEnableWarnings
Test->>PausePointUseCase: enable file-and-line trace pause point
PausePointUseCase->>PausePointEnableWarnings: build warning from mode, method, and history
PausePointEnableWarnings-->>PausePointUseCase: return per-frame notice
PausePointUseCase-->>Test: return combined enable warnings
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…med as a Unity message The notice asserted the method is a per-frame Unity message, which is false for a plain C# Update driven by a MonoBehaviour. Name-based matching stays so that delegation pattern is not a false negative. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
traceonUpdate/FixedUpdate/LateUpdate/OnGUInow appends a notice that the target is a per-frame Unity message and that history can roll over quickly.User Impact
--max-history. The wording does not claim overflow will happen.Changes
BuildPerFrameTraceWarningOrEmpty: trace mode plus simple nameUpdate/FixedUpdate/LateUpdate/OnGUI.Type.Method(including from Cecil FullName) and the effective max-history.Verification
dist/darwin-arm64/uloop compile→ ErrorCount 0uloop run-tests --filter-value PausePointPerFrameTraceNoticeTests→ 12 passed / 0 failed (4 per-frame names, Cecil FullName, non-trace, non-matching names, concatenation order, file:line enable wiring)scripts/check-file-length.shandCODE_COMPLEXITY_FAIL_ON_EXCEEDED=true scripts/check-code-complexity.sh→ no findings