-
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
executor: track memory usage for nested loop apply #6171
Conversation
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 |
@coocood PTAL |
LGTM |
executor/join.go
Outdated
e.memTracker = memory.NewTracker(e.id, -1) | ||
e.memTracker.AttachTo(e.ctx.GetSessionVars().StmtCtx.MemTracker) | ||
|
||
e.innerList.GetMemTracker().SetLabel("innerList") |
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.
Please unify the label. s/innerList/ inner list ?
You use inner result
at https://github.com/pingcap/tidb/pull/6169/files#diff-20d78b6f56a445c17a245017619f8eccR514.
Or we can put these labels together.
track memory usage for
NestedLoopApplyExec
, only trackinnerList
.