Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: don't formatStatementHideConstants when profiling prepared stmt #74351

Merged

Conversation

nvanbenschoten
Copy link
Member

This commit removes the call to formatStatementHideConstants when
executing a prepared statement while CPU profiling is enabled. The
formatted statement is already available, so there's no need to
re-format.

Formatting isn't excessively expensive and we do expect CPU profiling to
be disruptive, so the cost wasn't a big deal on its own. However, the
more important part of the change is that it helps clean up the CPU
profiles and make them more representative.

This commit removes the call to `formatStatementHideConstants` when
executing a prepared statement while CPU profiling is enabled. The
formatted statement is already available, so there's no need to
re-format.

Formatting isn't excessively expensive and we do expect CPU profiling to
be disruptive, so the cost wasn't a big deal on its own. However, the
more important part of the change is that it helps clean up the CPU
profiles and make them more representative.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nvanbenschoten
Copy link
Member Author

TFTR!

bors r=rafiss

@craig
Copy link
Contributor

craig bot commented Jan 4, 2022

Build succeeded:

@craig craig bot merged commit 798a3e5 into cockroachdb:master Jan 4, 2022
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/assortedPerf15 branch January 6, 2022 16:45
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.

3 participants