20 #include <gtest/gtest.h>
41 ASSERT_GE(process_state_info.
GetBytes(
"io/read_bytes"), 0);
42 ASSERT_GE(process_state_info.
GetInt(
"sched/prio"), 0);
43 ASSERT_GE(process_state_info.
GetInt(
"status/Threads"), 0);
48 int main(
int argc,
char **argv) {
49 ::testing::InitGoogleTest(&argc, argv);
52 return RUN_ALL_TESTS();
static int64_t physical_mem()
Get total physical memory in bytes (ignores cgroups memory limits).
void InitCommonRuntime(int argc, char **argv, bool init_jvm, TestInfo::Mode m=TestInfo::NON_TEST)
int64_t GetBytes(const string &state_key) const
Original data's unit is B or KB.
int GetInt(const string &state_key) const
static int32_t vm_overcommit()
Returns the systems memory overcommit settings, typically the values are 0,1, and 2...
int main(int argc, char **argv)
static int64_t commit_limit()