Skip to content

Comments

refactor(server): Register metrics for peak memory usage#1803

Open
leoyvens wants to merge 1 commit intomainfrom
leo/query-mem-usage-metrics
Open

refactor(server): Register metrics for peak memory usage#1803
leoyvens wants to merge 1 commit intomainfrom
leo/query-mem-usage-metrics

Conversation

@leoyvens
Copy link
Collaborator

The metric was previously in the dead fn record_query_memory. Also reimplements #1792, consolidating memory usage reporting into the metrics recording path instead of relying on the funky log on drop.

  • Record peak memory in record_query_execution alongside other metrics
  • Remove unused record_query_memory method

@leoyvens leoyvens requested a review from Theodus February 18, 2026 14:35
Consolidate memory usage reporting into the metrics recording path
instead of relying on a stream wrapper in common.

- Remove `PeakMemoryStream` wrapper from `QueryContext`
- Expose `memory_pool()` accessor on `QueryContext`
- Record peak memory in `record_query_execution` alongside other metrics
- Remove unused `record_query_memory` method

Signed-off-by: Leonardo Yvens <leoyvens@gmail.com>
@leoyvens leoyvens force-pushed the leo/query-mem-usage-metrics branch from bc36748 to 809d735 Compare February 18, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant