Searched refs:GetCpusFromString (Results 1 – 5 of 5) sorted by relevance
/system/extras/simpleperf/ |
D | environment_test.cpp | 24 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()
|
D | environment.h | 39 std::vector<int> GetCpusFromString(const std::string& s);
|
D | environment.cpp | 89 result = GetCpusFromString(line); in GetOnlineCpus() 95 std::vector<int> GetCpusFromString(const std::string& s) { in GetCpusFromString() function
|
D | cmd_stat.cpp | 547 cpus_ = GetCpusFromString(args[i]); in ParseOptions()
|
D | cmd_record.cpp | 752 cpus_ = GetCpusFromString(args[i]); in ParseOptions()
|