parser: track memory usage of the parser for `tidb_mem_quota_query`
Open
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement
As described in https://github.com/pingcap/tidb/issues/32165#issuecomment-1035863879:
> tidb_mem_quota_query is more of a manual calculation to control memory, which does have the potential missing memory usage.
We need to track the memory used by the parser to archive a more accurate memory control for `tidb_mem_quota_query`.
Contributor guide
Assessment
This issue has not been assessed yet.