MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / constructDataLog

Function constructDataLog

src/common/utils/Log.h:206–217  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

204 * @return Log message string to be displayed
205 */
206inline const std::string constructDataLog(const std::vector<std::string> &params_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

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected