| 1058 | } |
| 1059 | |
| 1060 | void PluginManager::OnStateChange(color_ostream &out, state_change_event event) |
| 1061 | { |
| 1062 | auto &core = Core::getInstance(); |
| 1063 | auto &counters = core.perf_counters; |
| 1064 | for (auto it = begin(); it != end(); ++it) { |
| 1065 | auto & plugin_name = it->first; |
| 1066 | auto & plugin = it->second; |
| 1067 | uint32_t start_ms = core.p->getTickCount(); |
| 1068 | plugin->on_state_change(out, event); |
| 1069 | counters.incCounter(counters.state_change_per_plugin[plugin_name], start_ms); |
| 1070 | } |
| 1071 | } |
| 1072 | |
| 1073 | void PluginManager::registerCommands( Plugin * p ) |
| 1074 | { |
no test coverage detected