MCPcopy Create free account
hub / github.com/catboost/catboost / TestMemInfo

Method TestMemInfo

util/system/mem_info_ut.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 UNIT_TEST(TestMemInfo)
10 UNIT_TEST_SUITE_END();
11 void TestMemInfo() {
12 using namespace NMemInfo;
13
14 TMemInfo stats = GetMemInfo();
15
16 UNIT_ASSERT(stats.RSS >= NSystemInfo::GetPageSize());
17 UNIT_ASSERT(stats.VMS >= stats.RSS);
18 }
19};
20
21UNIT_TEST_SUITE_REGISTRATION(TMemInfoTest)

Callers

nothing calls this directly

Calls 2

GetMemInfoFunction · 0.85
GetPageSizeFunction · 0.50

Tested by

no test coverage detected