[enhancement] Refactor to improve the usability of MemTracker (step2) (#10823)

This commit is contained in:
Xinyi Zou
2022-07-21 17:11:28 +08:00
committed by GitHub
parent 5f6f35e886
commit 4960043f5e
316 changed files with 2145 additions and 4369 deletions

View File

@ -27,7 +27,7 @@ namespace doris {
FunctionUtils::FunctionUtils() {
doris_udf::FunctionContext::TypeDesc return_type;
std::vector<doris_udf::FunctionContext::TypeDesc> arg_types;
_memory_pool = new MemPool("function util");
_memory_pool = new MemPool();
_fn_ctx = FunctionContextImpl::create_context(_state, _memory_pool, return_type, arg_types, 0,
false);
}
@ -35,7 +35,7 @@ FunctionUtils::FunctionUtils(RuntimeState* state) {
_state = state;
doris_udf::FunctionContext::TypeDesc return_type;
std::vector<doris_udf::FunctionContext::TypeDesc> arg_types;
_memory_pool = new MemPool("function util");
_memory_pool = new MemPool();
_fn_ctx = FunctionContextImpl::create_context(_state, _memory_pool, return_type, arg_types, 0,
false);
}
@ -43,7 +43,7 @@ FunctionUtils::FunctionUtils(RuntimeState* state) {
FunctionUtils::FunctionUtils(const doris_udf::FunctionContext::TypeDesc& return_type,
const std::vector<doris_udf::FunctionContext::TypeDesc>& arg_types,
int varargs_buffer_size) {
_memory_pool = new MemPool("function util");
_memory_pool = new MemPool();
_fn_ctx = FunctionContextImpl::create_context(_state, _memory_pool, return_type, arg_types,
varargs_buffer_size, false);
}