MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / trace_log_i32

Function trace_log_i32

src/framework/debug/trace.cpp:271–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void trace_log_i32(const std::string & name, const std::vector<int64_t> & dims, const std::vector<int32_t> & values) {
272 if (!trace_log_enabled()) {
273 return;
274 }
275 std::ostringstream output;
276 output << "[TRACE ts=" << timestamp_seconds_local() << "] " << name
277 << " shape=" << format_dims(dims)
278 << " size=" << values.size()
279 << " samples=" << sample_points_i32(values);
280 log_message(output.str());
281}
282
283void trace_log_scalar(const std::string & name, std::string_view value) {
284 if (!trace_log_enabled()) {

Callers

nothing calls this directly

Calls 7

trace_log_enabledFunction · 0.85
format_dimsFunction · 0.85
sample_points_i32Function · 0.85
log_messageFunction · 0.85
strMethod · 0.80
timestamp_seconds_localFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected