Add method to reset plugin statsistics
This commit is contained in:
parent
ef98492298
commit
fbcb0b6443
@ -74,6 +74,7 @@ public:
|
||||
bool cancelled () { return _cancel_scan; }
|
||||
bool no_timeout () { return _cancel_timeout; }
|
||||
|
||||
void reset_stats ();
|
||||
void stats_use_plugin (PluginInfoPtr const&);
|
||||
bool stats (PluginInfoPtr const&, int64_t& lru, uint64_t& use_count) const;
|
||||
void save_stats ();
|
||||
|
@ -1673,6 +1673,14 @@ PluginManager::load_stats ()
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
PluginManager::reset_stats ()
|
||||
{
|
||||
statistics.clear ();
|
||||
PluginStatsChanged (); /* EMIT SIGNAL */
|
||||
save_stats ();
|
||||
}
|
||||
|
||||
void
|
||||
PluginManager::stats_use_plugin (PluginInfoPtr const& pip)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user