Skip to content

Commit

Permalink
Log number of modules and plugin collections on start
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Dec 13, 2024
1 parent a03c48c commit 0da5ceb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,8 @@ std::string pluginPath(const std::string& dirname);

namespace plugin {

static uint32_t numPluginModules = 0;

struct StaticPluginLoader {
Plugin* const plugin;
FILE* file;
Expand Down Expand Up @@ -1059,6 +1061,8 @@ struct StaticPluginLoader {

json_decref(rootJ);
plugins.push_back(plugin);

numPluginModules += plugin->models.size();
}

if (file != nullptr)
Expand Down Expand Up @@ -3597,6 +3601,9 @@ void initStaticPlugins()
initStatic__WhatTheRack();
initStatic__ZetaCarinaeModules();
initStatic__ZZC();

INFO("Have %u modules from %u plugin collections",
numPluginModules, static_cast<uint32_t>(plugins.size()));
}

void destroyStaticPlugins()
Expand Down

0 comments on commit 0da5ceb

Please sign in to comment.