| 41 | } |
| 42 | |
| 43 | std::string MetricCapabilities::ToString(size_t indentSpaces) const |
| 44 | { |
| 45 | std::ostringstream oss; |
| 46 | const std::string indent(indentSpaces, ' '); |
| 47 | bool first = true; |
| 48 | for (const auto& kv : caps_) { |
| 49 | if (!first) { |
| 50 | oss << "\r\n"; |
| 51 | oss << indent; |
| 52 | } |
| 53 | first = false; |
| 54 | oss << "metricId=" << static_cast<std::underlying_type_t<PM_METRIC>>(kv.first) |
| 55 | << " arraySize=" << kv.second; |
| 56 | } |
| 57 | return oss.str(); |
| 58 | } |
| 59 | } |
no outgoing calls
no test coverage detected