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
59void ModelRegistry::register_loader(std::shared_ptr<IVoiceModelLoader> loader) {
60 if (loader == nullptr) {
61 throw std::invalid_argument("model loader must not be null");
62 }
63 loaders_.push_back(std::move(loader));
64}
65
66bool ModelRegistry::empty() const noexcept {
67 return loaders_.empty();
68}
69
70size_t ModelRegistry::size() const noexcept {
71 return loaders_.size();
72}
73
74std::vector<std::string> ModelRegistry::families() const {
75 std::vector<std::string> names;
76 names.reserve(loaders_.size());
77 for (const auto & loader : loaders_) {
78 names.push_back(loader->family());

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