It constructs the log message to be displayed by the logger by writing each parameter name and its * corresponding data info string. * * @param[in] params_names Constant reference to a string consists of the the input parameters' names * provided e.g.: ARM_COMPUTE_LOG_PARAMS(src0, src1) then params_names = "src0, src1" * @param[in] data_registry Constant reference t
| 204 | * @return Log message string to be displayed |
| 205 | */ |
| 206 | inline const std::string constructDataLog(const std::vector<std::string> ¶ms_names, |
| 207 | const std::vector<std::string> &data_registry) |
| 208 | { |
| 209 | std::string dataLog = "\n "; |
| 210 | ARM_COMPUTE_ERROR_ON(params_names.size() != data_registry.size()); |
| 211 | for (uint8_t i = 0; i < params_names.size(); ++i) |
| 212 | { |
| 213 | dataLog += params_names[i] + ": " + data_registry.at(i) + "\n "; |
| 214 | } |
| 215 | |
| 216 | return dataLog; |
| 217 | } |
| 218 | |
| 219 | /** Macro for logging input Parameters from any function. |
| 220 | * It detects the input parameters names, and their corresponding values before stringizing them using |