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

Function trace_log_f32

src/framework/debug/trace.cpp:259–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void trace_log_f32(const std::string & name, const std::vector<int64_t> & dims, const std::vector<float> & values) {
260 if (!trace_log_enabled()) {
261 return;
262 }
263 std::ostringstream output;
264 output << "[TRACE ts=" << timestamp_seconds_local() << "] " << name
265 << " shape=" << format_dims(dims)
266 << " size=" << values.size()
267 << " samples=" << sample_points_f32(values);
268 log_message(output.str());
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()) {

Callers 1

trace_log_stateMethod · 0.85

Calls 7

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

Tested by

no test coverage detected