Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dutils_test.cpp103 TEST(utils, GetCpusFromString) { in TEST() argument
104 ASSERT_EQ(GetCpusFromString(""), std::vector<int>()); in TEST()
105 ASSERT_EQ(GetCpusFromString("0-2"), std::vector<int>({0, 1, 2})); in TEST()
106 ASSERT_EQ(GetCpusFromString("0,2-3"), std::vector<int>({0, 2, 3})); in TEST()
107 ASSERT_EQ(GetCpusFromString("1,0-3,3,4"), std::vector<int>({0, 1, 2, 3, 4})); in TEST()
Dutils.h167 std::vector<int> GetCpusFromString(const std::string& s);
Dutils.cpp414 std::vector<int> GetCpusFromString(const std::string& s) { in GetCpusFromString() function
Devent_type.cpp239 return GetCpusFromString(cpumask_content); in GetPmuCpumask()
Dcmd_stat.cpp645 cpus_ = GetCpusFromString(*value->str_value); in ParseOptions()
Denvironment.cpp92 result = GetCpusFromString(line); in GetOnlineCpus()
Dcmd_record.cpp785 cpus_ = GetCpusFromString(*value->str_value); in ParseOptions()