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

Function log_model_load_trace

src/framework/runtime/registry.cpp:60–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 item.erase(std::find_if(item.rbegin(), item.rend(), [](unsigned char ch) { return std::isspace(ch) == 0; }).base(), item.end());
59 if (!item.empty()) {
60 items.push_back(std::move(item));
61 }
62 if (end == std::string::npos) {
63 break;
64 }
65 start = end + 1;
66 }
67 return items;
68}
69
70void log_model_load_trace(const ModelInspection & inspection, const ILoadedVoiceModel & model) {
71 if (!engine::debug::trace_log_enabled()) {
72 return;
73 }
74 const auto & metadata = model.metadata();
75 engine::debug::trace_log_scalar("runtime.model.family", metadata.family);
76 engine::debug::trace_log_scalar("runtime.model.variant", metadata.variant);
77 engine::debug::trace_log_scalar("runtime.model.root", inspection.model_root.string());
78 engine::debug::trace_log_scalar("runtime.model.discovered_config_count", inspection.discovered_configs.size());

Callers 1

loadMethod · 0.85

Calls 3

trace_log_enabledFunction · 0.85
trace_log_scalarFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected