Fix the low utilization of SimpleAllocer
This commit is contained in:
@ -864,7 +864,8 @@ int select_sysstat(lua_State* L)
|
||||
GCTX.omt_->get_tenant_ids(ids);
|
||||
LuaVtableGenerator gen(L, columns);
|
||||
for (int64_t i = 0; i < ids.size() && !gen.is_end(); ++i) {
|
||||
HEAP_VAR(ObDiagnoseTenantInfo, diag_info) {
|
||||
ObArenaAllocator diag_allocator;
|
||||
HEAP_VAR(ObDiagnoseTenantInfo, diag_info, &diag_allocator) {
|
||||
if (OB_FAIL(ObDIGlobalTenantCache::get_instance().get_the_diag_info(ids.at(i), diag_info))) {
|
||||
OB_LOG(ERROR, "failed to get_the_diag_info", K(ids.at(i)), K(ret));
|
||||
} else if (OB_FAIL(observer::ObAllVirtualSysStat::update_all_stats(ids.at(i), diag_info.get_set_stat_stats()))) {
|
||||
@ -2016,7 +2017,8 @@ int enable_system_tenant_memory_limit(lua_State* L)
|
||||
int get_tenant_sysstat(int64_t tenant_id, int64_t statistic, int64_t &value)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
HEAP_VAR(ObDiagnoseTenantInfo, diag_info) {
|
||||
ObArenaAllocator diag_allocator;
|
||||
HEAP_VAR(ObDiagnoseTenantInfo, diag_info, &diag_allocator) {
|
||||
if (statistic < 0
|
||||
|| statistic >= ObStatEventIds::STAT_EVENT_SET_END
|
||||
|| ObStatEventIds::STAT_EVENT_ADD_END == statistic) {
|
||||
|
||||
@ -28,7 +28,7 @@ ObAllVirtualSysEvent::ObAllVirtualSysEvent()
|
||||
port_(0),
|
||||
event_iter_(0),
|
||||
tenant_id_(OB_INVALID_ID),
|
||||
diag_info_()
|
||||
diag_info_(allocator_)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ ObAllVirtualSysStat::ObAllVirtualSysStat()
|
||||
port_(0),
|
||||
stat_iter_(0),
|
||||
tenant_id_(OB_INVALID_TENANT_ID),
|
||||
diag_info_()
|
||||
diag_info_(allocator_)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ ObInfoSchemaKvCacheTable::ObInfoSchemaKvCacheTable()
|
||||
cache_iter_(0),
|
||||
str_buf_(),
|
||||
arenallocator_(),
|
||||
tenant_di_info_(),
|
||||
tenant_di_info_(allocator_),
|
||||
tenant_dis_()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user