Home
last modified time | relevance | path

Searched refs:memInfo_ (Results 1 - 5 of 5) sorted by relevance

/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_strategy_manager/
H A Dmemcg.cpp120 memInfo_ = new (std::nothrow) MemInfo(); in Memcg()
122 if (swapInfo_ == nullptr || memInfo_ == nullptr || reclaimRatios_ == nullptr) { in Memcg()
133 delete memInfo_; in ~Memcg()
134 memInfo_ = nullptr; in ~Memcg()
142 if (memInfo_ == nullptr) { in UpdateMemInfoFromKernel()
143 HILOGE("memInfo_ nullptr"); in UpdateMemInfoFromKernel()
162 memInfo_->anonKiB_ = (unsigned int)std::stoi(res.str(1)); // 1: anonKiB index in UpdateMemInfoFromKernel()
163 memInfo_->zramKiB_ = (unsigned int)std::stoi(res.str(2)); // 2: zramKiB index in UpdateMemInfoFromKernel()
164 memInfo_->eswapKiB_ = (unsigned int)std::stoi(res.str(3)); // 3: eswapKiB index in UpdateMemInfoFromKernel()
169 HILOGI("success. %{public}s", memInfo_ in UpdateMemInfoFromKernel()
[all...]
H A Dmemcg_mgr.cpp157 return memcg->memInfo_; in GetMemcgMemInfo()
/foundation/resourceschedule/memmgr/services/memmgrservice/include/reclaim_strategy_manager/
H A Dmemcg.h83 MemInfo* memInfo_; member in OHOS::Memory::Memcg
/foundation/resourceschedule/memmgr/test/unittest/phone/
H A Duser_memcg_test.cpp62 EXPECT_EQ(memcg->memInfo_ != nullptr, true); in HWTEST_F()
H A Dmemcg_test.cpp60 EXPECT_EQ(memcg->memInfo_ != nullptr, true); in HWTEST_F()

Completed in 2 milliseconds