[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:
@ -195,7 +195,7 @@ Status CsvScanNode::prepare(RuntimeState* state) {
|
||||
return Status::InternalError("new a csv scanner failed.");
|
||||
}
|
||||
|
||||
_tuple_pool.reset(new (std::nothrow) MemPool(state->instance_mem_tracker().get()));
|
||||
_tuple_pool.reset(new (std::nothrow) MemPool());
|
||||
if (_tuple_pool.get() == nullptr) {
|
||||
return Status::InternalError("new a mem pool failed.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user