Repository navigation
Conversation
Scan-Build Report
Bug Summary
Filter Results by FileReports
|
|||||||||||||||||||||||||||||||||||||||||||||||||
70bdc1c to
454e733
Compare
CI Test ResultsRun: #43913408017 | Commit:
Status Overview
Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled Summary: Total: 32 | Passed: 32 | Failed: 0 Updated: 2026-11-16 17:22:39 UTC |
Reliability & Chaos Results
|
454e733 to
64a3ef7
Compare
64a3ef7 to
8ac1bfa
Compare
8ac1bfa to
6dee659
Compare
6dee659 to
e7ce138
Compare
e7ce138 to
c185a4a
Compare
|
@DataDog review |
There was a problem hiding this comment.
On musl, an executable path containing musl can make libc detection launch the estimator recursively and hang. The Gradle wiring also shares incompatible benchmark arguments and omits the local header from incremental-build inputs.
🤖 Bits Code Review · Commit c185a4a
c185a4a to
ef8f97c
Compare
ef8f97c to
869e44e
Compare
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
Confidence is limited to source inspection: Linux execution, fault modes, and statistical self-tests were not exercised.
🤖 Bits Code Review · Commit 869e44e
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 869e44e155
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
1af93ad to
8238c26
Compare
There was a problem hiding this comment.
More details
The estimate remains advisory: neither its magnitude nor injected-magnitude CI containment becomes a failure threshold. Runtime self-tests and Gradle task execution remain unvalidated.
🤖 Bits Code Review · Commit 8238c26
8238c26 to
46d861c
Compare
There was a problem hiding this comment.
More details
The estimator’s runtime measurements and statistical self-tests were not exercised; validation is limited to static analysis and C++ syntax checks.
🤖 Bits Code Review · Commit 46d861c
There was a problem hiding this comment.
The PR adds an advisory paired estimator for native allocation-accounting cost, outside blocking CI. This update addresses root-cgroup sampling and adds fault injections for both confidence-interval rejection branches. One P2 issue remains: the cgroup verification accepts incorrect zero counters because it lacks a lower bound. There were no earlier open findings. Runtime estimator and Gradle verification remain unexecuted.
🤖 Bits Code Review · Commit 190493d
| } else { | ||
| val markerThrottled = Regex("cpu_nr_throttled=(\\S+)").find(report)?.groupValues?.get(1) | ||
| val markerValue = markerThrottled?.toLongOrNull() | ||
| if (markerValue == null || markerValue > ownThrottled.toLong()) { |
There was a problem hiding this comment.
Add a lower bound to the cgroup counter cross-check
When the process’s cgroup already has a nonzero throttling counter, an incorrect marker of zero still passes this upper-bound-only comparison. The verification therefore misses the wrong-hierarchy sampling it is intended to detect whenever that hierarchy reports zero. Read the own-cgroup counter before and after the normal run and require marker values to fall within that interval, or verify with deterministic fixtures containing distinct root and child counters.
React: 👍 useful · 👎 wrong · 😕 unclear · 👀 right, but not acting on it
What each reaction means
- 👍 Useful: correct, and you're fixing it or will.
- 👎 Wrong: the finding is incorrect, for example the bug can't happen or the code was misread.
- 😕 Unclear: you can't tell what it means or why it matters.
- 👀 Right, not acting: correct, but intended, out of scope for this PR, a known risk, or too minor.
🤖 Bits Code Review · Open Bits AI session
A Linux-only benchmark executable replays a seeded alloc/free trace with and without NativeMem bookkeeping in AB/BA pairs, reporting the paired median delta with a bootstrap CI, a sign test and an A-A noise floor; it links the real nativeMem.cpp and never gates on the size of an estimate.
GradleTasks.md states that runBenchmarks covers the unwind benchmark and the estimator, and describes the estimator's advisory output fields and Linux-only gating.
A mapping path merely containing musl (the estimator binary in a musl directory) ran the wrong binary and recursed into itself; the probe now skips candidates until the loader's own filename matches
-Pargs stays with runBenchmark: the estimator rejects its options and vice versa; and the two directly included headers become compile inputs so a header edit no longer reuses a stale object
190493d to
41a45b7
Compare
There was a problem hiding this comment.
More details
The estimator uses the production accounting implementation without changing it, and estimate magnitude remains advisory. Runtime calibration and Gradle task execution were not validated.
🤖 Bits Code Review · Commit 41a45b7
Summary
Add an advisory, paired same-window cost estimator for the native allocation-accounting layer (
NativeMem::recordAlloc/recordFreeBefore→MallocFootprint::overheadOf). Tracker: PROF-16568. Stacked on #971.The repo has no cost estimate for the accounting layer at all. The research discipline is strict about what such an estimate may look like: unpaired before/after medians cannot resolve ≤10 ns/op effects (~30 % in-window drift), so the only valid shape is a paired, same-window measurement of an identical replayed trace.
What changed
ddprof-lib/benchmarks(nativeMemCostEstimator.cpp,estimatorSupport{.h,_linux.cpp}), built with its own object directory and tasks (compileNativeMemEstimator/link/run) at the release flags (-O3 -DNDEBUG -g -std=c++17) so theassertis stripped as in shipped builds. It compiles and links the realddprof-lib/src/main/cpp/nativeMem.cpp— the accounting functions are never copied or reimplemented. The unwind benchmark is untouched.std::mt19937_64raw output, no distributions), balanced (every allocation freed), sizes below the 128 KiB mmap threshold, 64-bit hash asserted. Pair order comes from a second recorded seed (AB/BA).recordAlloc/recordFreeBeforeonNM_MISCwithreset()between replays), I (A + a calibrated per-op spin) for the self-test.gnu_get_libc_version, musl via the loader banner orNA), build flags, per-windowmarkers:records in the A1 format.NativeMem::max(cat) > 0per replay, else non-zero exit.ia_ci_contains_magnitude=), not a gate: a 95 % CI misses the true magnitude ~5 % of runs by construction.verifyNativeMemEstimator(Gradle, not CI-wired): runs each fault option (--force-bad-hash,--skip-accounting-call,--inject-zero) asserting non-zero exit and the normal--demorun asserting exit 0 and the required report fields.runBenchmarksnow covers both run tasks;GradleTasks.mddocuments the estimator.Design decisions for reviewer acknowledgment
runBenchmarksnow runs the estimator at its default op count (2M ops) in addition to the unwind benchmark — the task is slower; that is the documented behavior of "covers both".--inject-zerofault mode exits deterministically with a forced-failure reason rather than relying on a CI-condition that flake by construction.popenerror handling, procfs short reads). Follow-ups welcome; none affect the estimate's correctness.Testing
NA).self_test=pass(libc 2.35), fullverifyNativeMemEstimatorgreen (3 fault modes rc=1, normal rc=0, 119 report lines), musl runself_test=pass(musl 1.2.5,ia_ci_contains_magnitude=yes). Musl's CI is visibly wider than glibc's, as expected.spotlessCheck+qualityChecksgreen; no production file touched (ddprof-lib/src/main/**unchanged; the unwind benchmark byte-identical).