Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Denvironment_test.cpp24 TEST(environment, GetCpusFromString) { in TEST() argument
25 ASSERT_EQ(GetCpusFromString(""), std::vector<int>()); in TEST()
26 ASSERT_EQ(GetCpusFromString("0-2"), std::vector<int>({0, 1, 2})); in TEST()
27 ASSERT_EQ(GetCpusFromString("0,2-3"), std::vector<int>({0, 2, 3})); in TEST()
28 ASSERT_EQ(GetCpusFromString("1,0-3,3,4"), std::vector<int>({0, 1, 2, 3, 4})); in TEST()
Denvironment.h39 std::vector<int> GetCpusFromString(const std::string& s);
Denvironment.cpp89 result = GetCpusFromString(line); in GetOnlineCpus()
95 std::vector<int> GetCpusFromString(const std::string& s) { in GetCpusFromString() function
Dcmd_stat.cpp547 cpus_ = GetCpusFromString(args[i]); in ParseOptions()
Dcmd_record.cpp752 cpus_ = GetCpusFromString(args[i]); in ParseOptions()