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