[Feature](Memory) Hook TCMalloc new/delete automatically counts to MemTracker (#8476)
Early Design Documentation: https://shimo.im/docs/DT6JXDRkdTvdyV3G Implement a new way of memory statistics based on TCMalloc New/Delete Hook, MemTracker and TLS, and it is expected that all memory new/delete/malloc/free of the BE process can be counted.
This commit is contained in:
@ -59,7 +59,7 @@ Status IntersectNode::open(RuntimeState* state) {
|
||||
_valid_element_in_hash_tbl = 0;
|
||||
// probe
|
||||
_probe_batch.reset(
|
||||
new RowBatch(child(i)->row_desc(), state->batch_size(), mem_tracker().get()));
|
||||
new RowBatch(child(i)->row_desc(), state->batch_size()));
|
||||
ScopedTimer<MonotonicStopWatch> probe_timer(_probe_timer);
|
||||
RETURN_IF_ERROR(child(i)->open(state));
|
||||
eos = false;
|
||||
|
||||
Reference in New Issue
Block a user