update hidebug/frameworks/native/src/hidebug_native_interface_impl.cpp.

Signed-off-by: z30044609 <zhouxiaoqin4@huawei.com>
This commit is contained in:
z30044609 2024-02-28 11:18:49 +00:00 committed by Gitee
parent 703dd7ee72
commit d51542c500
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -132,9 +132,7 @@ std::optional<MemoryLimit> HidebugNativeInterfaceImpl::GetAppMemoryLimit()
}
std::optional<ProcessMemory> HidebugNativeInterfaceImpl::GetAppNativeMemInfo()
{
HILOG_INFO(LOG_CORE, "GetAppNativeMemInfo");
{
std::shared_ptr<UCollectUtil::MemoryCollector> collector = UCollectUtil::MemoryCollector::Create();
if (!collector) {
HILOG_ERROR(LOG_CORE, "GetAppNativeMemInfo Failed");
@ -168,8 +166,6 @@ std::optional<ProcessMemory> HidebugNativeInterfaceImpl::GetAppNativeMemInfo()
std::optional<SysMemory> HidebugNativeInterfaceImpl::GetSystemMemInfo()
{
HILOG_INFO(LOG_CORE, "GetSystemMemInfo");
std::shared_ptr<UCollectUtil::MemoryCollector> collector = UCollectUtil::MemoryCollector::Create();
if (!collector) {
HILOG_ERROR(LOG_CORE, "GetSystemMemInfo Failed");