diff options
author | Matthieu Aubry <matt@piwik.org> | 2014-12-05 02:09:31 +0300 |
---|---|---|
committer | Matthieu Aubry <matt@piwik.org> | 2014-12-05 02:09:31 +0300 |
commit | 7ab9fddb402981190d6fd83b62ac35fe65913afe (patch) | |
tree | 76c2cf3b26cfeff3cb9828334cab55c06dc6d83a /core/ArchiveProcessor | |
parent | 93b1a76de9796a17aefd4ed3c46af242732eb9e9 (diff) | |
parent | ba8640b31bce3f544cd1be058b6766eb6f1ca458 (diff) |
Merge pull request #6794 from czolnowski/6708-provide-better-information-of-memory-usage-in-archiving
Provide better information regarding memory usage by each plugin
Diffstat (limited to 'core/ArchiveProcessor')
-rw-r--r-- | core/ArchiveProcessor/PluginsArchiver.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/ArchiveProcessor/PluginsArchiver.php b/core/ArchiveProcessor/PluginsArchiver.php index d1bb950d38..5deae5d350 100644 --- a/core/ArchiveProcessor/PluginsArchiver.php +++ b/core/ArchiveProcessor/PluginsArchiver.php @@ -16,6 +16,7 @@ use Piwik\DataTable\Manager; use Piwik\Metrics; use Piwik\Plugin\Archiver; use Piwik\Log; +use Piwik\Timer; /** * This class creates the Archiver objects found in plugins and will trigger aggregation, @@ -101,6 +102,7 @@ class PluginsArchiver } if ($this->shouldProcessReportsForPlugin($pluginName)) { + $timer = new Timer(); if ($this->isSingleSiteDayArchive) { Log::debug("PluginsArchiver::%s: Archiving day reports for plugin '%s'.", __FUNCTION__, $pluginName); @@ -110,6 +112,13 @@ class PluginsArchiver $archiver->aggregateMultipleReports(); } + + Log::debug("PluginsArchiver::%s: %s while archiving %s reports for plugin '%s'.", + __FUNCTION__, + $timer->getMemoryLeak(), + $this->params->getPeriod()->getLabel(), + $pluginName + ); } else { Log::verbose("PluginsArchiver::%s: Not archiving reports for plugin '%s'.", __FUNCTION__, $pluginName); } |