Repository navigation
feat: add_ref_payload_index_io_read_counter - #9266
Conversation
📝 WalkthroughWalkthroughThis pull request adds a single new method, Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
lib/common/common/src/counter/referenced_counter.rs (1)
50-53: Confirm accessor wiring; check integration/usages
HardwareCounterCelldefinespub(super) payload_index_io_read_counter: CounterCelland initializes it, soHwMetricRefCounter::new(&self.payload_index_io_read_counter)is well-formed.- Repo-wide search finds
ref_payload_index_io_read_counter()only at its definition (no call sites). If the PR intends to expose new metrics, wire this accessor into the relevant reader; otherwise leave as preparatory code (ideally document the intent).🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@lib/common/common/src/counter/referenced_counter.rs` around lines 50 - 53, The accessor ref_payload_index_io_read_counter() is implemented but unused; confirm whether it should be exposed to consumers or left as preparatory code: if it must be wired up, call HwMetricRefCounter::new(&self.payload_index_io_read_counter) from the appropriate reader/collector (e.g., wherever other ref_* accessors are consumed) and add tests that the metric is observed; otherwise mark the method as intentionally preparatory by adding a short doc comment on ref_payload_index_io_read_counter (or on the HardwareCounterCell field payload_index_io_read_counter) stating it’s added for future metric exposure and keep it private/unreferenced until wired.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@lib/common/common/src/counter/referenced_counter.rs`:
- Around line 50-53: The accessor ref_payload_index_io_read_counter() is
implemented but unused; confirm whether it should be exposed to consumers or
left as preparatory code: if it must be wired up, call
HwMetricRefCounter::new(&self.payload_index_io_read_counter) from the
appropriate reader/collector (e.g., wherever other ref_* accessors are consumed)
and add tests that the metric is observed; otherwise mark the method as
intentionally preparatory by adding a short doc comment on
ref_payload_index_io_read_counter (or on the HardwareCounterCell field
payload_index_io_read_counter) stating it’s added for future metric exposure and
keep it private/unreferenced until wired.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 7c023a4b-5c24-434e-b3d8-93fe6b58bea5
📒 Files selected for processing (1)
lib/common/common/src/counter/referenced_counter.rs
All Submissions:
devbranch (notmaster) and my branch was created fromdev.New Feature Submissions:
cargo +nightly fmt --allcommand prior to submission?cargo clippy --workspace --all-featurescommand?Changes to Core Features: