mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
Add method to reset plugin statsistics
This commit is contained in:
parent
ef98492298
commit
fbcb0b6443
2 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue