xinyiZzz commented on code in PR #21755: URL: https://github.com/apache/doris/pull/21755#discussion_r1264305805
########## be/src/util/mem_info.cpp: ########## @@ -86,21 +86,26 @@ void MemInfo::refresh_allocator_mem() { // https://jemalloc.net/jemalloc.3.html // https://www.bookstack.cn/read/aliyun-rds-core/4a0cdf677f62feb3.md - _s_allocator_cache_mem = get_je_all_arena_metrics("tcache_bytes") + - get_je_metrics("stats.metadata") + - get_je_all_arena_metrics("pdirty") * get_page_size(); - _s_allocator_cache_mem_str = - PrettyPrinter::print(static_cast<uint64_t>(_s_allocator_cache_mem), TUnit::BYTES); - _s_virtual_memory_used = get_je_metrics("stats.mapped"); + _s_allocator_cache_mem.store(get_je_all_arena_metrics("tcache_bytes") + Review Comment: 好,我把和 stacktrace 不想关的先移出去 ########## be/src/util/mem_info.cpp: ########## @@ -86,21 +86,26 @@ void MemInfo::refresh_allocator_mem() { // https://jemalloc.net/jemalloc.3.html // https://www.bookstack.cn/read/aliyun-rds-core/4a0cdf677f62feb3.md - _s_allocator_cache_mem = get_je_all_arena_metrics("tcache_bytes") + - get_je_metrics("stats.metadata") + - get_je_all_arena_metrics("pdirty") * get_page_size(); - _s_allocator_cache_mem_str = - PrettyPrinter::print(static_cast<uint64_t>(_s_allocator_cache_mem), TUnit::BYTES); - _s_virtual_memory_used = get_je_metrics("stats.mapped"); + _s_allocator_cache_mem.store(get_je_all_arena_metrics("tcache_bytes") + Review Comment: 好,我把和 stacktrace 不想关的先移出去 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org