Home
last modified time | relevance | path

Searched refs:GetCpusFromString (Results 1 – 5 of 5) sorted by relevance

/system/extras/simpleperf/
Denvironment_test.cpp21 TEST(environment, GetCpusFromString) { in TEST() argument
22 ASSERT_EQ(GetCpusFromString(""), std::vector<int>()); in TEST()
23 ASSERT_EQ(GetCpusFromString("0-2"), std::vector<int>({0, 1, 2})); in TEST()
24 ASSERT_EQ(GetCpusFromString("0,2-3"), std::vector<int>({0, 2, 3})); in TEST()
25 ASSERT_EQ(GetCpusFromString("1,0-3,3,4"), std::vector<int>({0, 1, 2, 3, 4})); in TEST()
Denvironment.h37 std::vector<int> GetCpusFromString(const std::string& s);
Denvironment.cpp82 result = GetCpusFromString(line); in GetOnlineCpus()
88 std::vector<int> GetCpusFromString(const std::string& s) { in GetCpusFromString() function
Dcmd_stat.cpp455 cpus_ = GetCpusFromString(args[i]); in ParseOptions()
Dcmd_record.cpp423 cpus_ = GetCpusFromString(args[i]); in ParseOptions()