Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <matt@piwik.org>2014-12-05 02:09:31 +0300
committerMatthieu Aubry <matt@piwik.org>2014-12-05 02:09:31 +0300
commit7ab9fddb402981190d6fd83b62ac35fe65913afe (patch)
tree76c2cf3b26cfeff3cb9828334cab55c06dc6d83a /core/ArchiveProcessor
parent93b1a76de9796a17aefd4ed3c46af242732eb9e9 (diff)
parentba8640b31bce3f544cd1be058b6766eb6f1ca458 (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.php9
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);
}