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:
Diffstat (limited to 'core/Profiler.php')
-rw-r--r--core/Profiler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Profiler.php b/core/Profiler.php
index 50caea0adc..e842994a8f 100644
--- a/core/Profiler.php
+++ b/core/Profiler.php
@@ -239,12 +239,12 @@ class Profiler
$profilerNamespace .= "-" . $currentGitBranch;
}
- xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY);
-
if ($mainRun) {
self::setProfilingRunIds(array());
}
+ xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY);
+
register_shutdown_function(function () use($profilerNamespace, $mainRun) {
$xhprofData = xhprof_disable();
$xhprofRuns = new XHProfRuns_Default();
@@ -337,6 +337,6 @@ class Profiler
*/
private static function getPathToXHProfRunIds()
{
- return StaticContainer::get('path.tmp') . '/cache/tests-xhprof-runs';
+ return PIWIK_INCLUDE_PATH . '/tmp/cache/tests-xhprof-runs';
}
}