summaryrefslogtreecommitdiff
path: root/simpleperf/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'simpleperf/command.h')
-rw-r--r--simpleperf/command.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/simpleperf/command.h b/simpleperf/command.h
index a46da6f5..1616bc40 100644
--- a/simpleperf/command.h
+++ b/simpleperf/command.h
@@ -117,6 +117,14 @@ struct OptionValueMap {
return res;
}
+ std::vector<std::string> PullStringValues(const OptionName& name) {
+ std::vector<std::string> res;
+ for (const auto& value : PullValues(name)) {
+ res.emplace_back(*value.str_value);
+ }
+ return res;
+ }
+
std::vector<OptionValue> PullValues(const OptionName& name) {
auto pair = values.equal_range(name);
if (pair.first != pair.second) {