Repository navigation
Conversation
There was a problem hiding this comment.
Superseded by the review of
18de89d6.
This review, of 816f9da5
✅ Approved — A small, correct wrapper around sqlite3_memory_used() with an accurate doc comment and a focused test. No issues found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
The wrapper is correct, and the test handles SQLite rounding allocation sizes up by checking with >=. The added build dependency is needed for the test's direct SQLite calls.
📝 Documentation: ✅ LGTM
The header comment on getSqliteProcessMemoryUsed() describes the current behavior accurately and points to the matching process-wide hard heap limit setting.
Reviewed commit: 816f9da5
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8107 +/- ##
==========================================
- Coverage 68.31% 68.31% -0.01%
==========================================
Files 726 726
Lines 189681 189695 +14
Branches 29675 29678 +3
==========================================
+ Hits 129581 129585 +4
- Misses 42721 42727 +6
- Partials 17379 17383 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
c2974b0 to
18de89d
Compare
There was a problem hiding this comment.
Superseded by the review of
adef4a14.
This review, of 18de89d6
✅ Approved — A small, correct wrapper around sqlite3_memory_used() with an accurate doc comment and a focused test. No issues found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
The wrapper is correct, and the test handles SQLite rounding allocation sizes up by checking with >=. The added build dependency is needed for the test's direct SQLite calls.
📝 Documentation: ✅ LGTM
The header comment on getSqliteProcessMemoryUsed() describes the current behavior accurately and points to the matching process-wide hard heap limit setting.
Reviewed commit: 18de89d6 — same changes as 816f9da5, so this is that commit's review (no new review was run; line numbers are as of 816f9da5)
18de89d to
adef4a1
Compare
There was a problem hiding this comment.
Superseded by the review of
9985b3df.
This review, of adef4a14
✅ Approved — No patches changed since the previous approved review. The change is still a small, correct wrapper around sqlite3_memory_used() with an accurate doc comment and a focused test. No issues found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
getSqliteProcessMemoryUsed() is a correct wrapper. Because SQLite rounds allocation sizes up, the test compares with >=, which avoids that problem. The new build dependency is needed because the test calls SQLite directly. Nothing has changed since the last review.
📝 Documentation: ✅ LGTM
The header comment on getSqliteProcessMemoryUsed() describes what the function does today. It also points to the process-wide hard heap limit that this value is measured against.
Reviewed commit: adef4a14
Exposes the bytes SQLite has allocated across all databases in the process, which is what the process-wide hard heap limit applies to, so callers outside workerd can report it without reaching into SQLite's C API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
adef4a1 to
9985b3d
Compare
There was a problem hiding this comment.
✅ Approved — No patches changed since the previous approved review. The change is still a small, correct wrapper around sqlite3_memory_used() with an accurate doc comment and a focused test. No issues found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
getSqliteProcessMemoryUsed() is a correct wrapper. Because SQLite rounds allocation sizes up, the test compares with >=, which avoids that problem. The new build dependency is needed because the test calls SQLite directly. Nothing has changed since the last review.
📝 Documentation: ✅ LGTM
The header comment on getSqliteProcessMemoryUsed() describes what the function does today. It also points to the process-wide hard heap limit that this value is measured against.
Reviewed commit: 9985b3df — same changes as adef4a14, so this is that commit's review (no new review was run; line numbers are as of adef4a14)
Exposes the bytes SQLite has allocated across all databases in the process, which is what the process-wide hard heap limit applies to, so callers outside workerd can report it without reaching into SQLite's C API.