-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
session, executor: add memTracker for DeleteExec #14289
Conversation
706befa
to
9fa2f04
Compare
/run-all-tests |
/run-all-tests |
if err != nil { | ||
} | ||
memUsageOfTxnState := txnState.Size() | ||
err = t.RemoveRecord(ctx, h, data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only one line change, is it easier to estimate the size of data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the existing interface is easier?
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
@XuHuaiyu merge failed. |
/run-unit-test |
What problem does this PR solve?
Before this PR, the memory usage of DeleteExec is not traced.
What is changed and how it works?
Add a memTracker for DeleteExec, to trace the memory usage of chk created during execution, and the memory usage of StmtBuffer and TxnBuffer.
Check List
Tests
Code changes
Side effects
N/A
Related changes
N/A
Release note
N/A