Skip to content

Add prepare/bind/execute/fetch time metrics to QueryExecuted#7730

Draft
xuanyanwow wants to merge 5 commits intohyperf:masterfrom
xuanyanwow:database-run-time
Draft

Add prepare/bind/execute/fetch time metrics to QueryExecuted#7730
xuanyanwow wants to merge 5 commits intohyperf:masterfrom
xuanyanwow:database-run-time

Conversation

@xuanyanwow
Copy link
Copy Markdown
Member

No description provided.

xuanyanwow and others added 4 commits August 28, 2025 14:35
Measure and record granular timing for database queries by tracking prepare, bind, execute and fetch durations. Connection methods now capture microtime measurements and return an array with keys prepare_time, bind_time, execute_time, fetch_time and result. logQuery signature and calls updated to accept and forward these timings, and the QueryExecuted event now includes prepareTime, bindTime, executeTime and fetchTime properties. This enables more detailed query performance logging and reporting.
@xuanyanwow xuanyanwow marked this pull request as draft April 1, 2026 02:08
@xuanyanwow
Copy link
Copy Markdown
Member Author

可达到观测不同阶段的耗时瓶颈 如datagrip日志
image

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