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:
authorsgiehl <stefan@matomo.org>2020-05-08 15:41:26 +0300
committersgiehl <stefan@matomo.org>2020-05-08 17:41:34 +0300
commit58991fbe62be4e3d1af1e6a1772aff25934c51d3 (patch)
tree6d0c5390383dacff54849753885b70ef026a0a1e /core/Profiler.php
parent1ac50c2a702bf22189a246c99b2dc9c0e7979217 (diff)
parentbd9aa9db1a95e6f1ef74b45e3723849fab2f292c (diff)
Merge remote-tracking branch 'origin/3.x-dev' into 4.x-dev
Diffstat (limited to 'core/Profiler.php')
-rw-r--r--core/Profiler.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/Profiler.php b/core/Profiler.php
index 58007a3a29..121c2c09b4 100644
--- a/core/Profiler.php
+++ b/core/Profiler.php
@@ -270,6 +270,17 @@ class Profiler
$outputDir . DIRECTORY_SEPARATOR . $runId . '.' . $profilerNamespace . '.xhprof',
serialize($xhprofData)
);
+ $meta = array('time' => time(), 'instance' => SettingsPiwik::getPiwikInstanceId());
+ if (!empty($_GET)) {
+ $meta['get'] = $_GET;
+ }
+ if (!empty($_POST)) {
+ $meta['post'] = $_POST;
+ }
+ file_put_contents(
+ $outputDir . DIRECTORY_SEPARATOR . $runId . '.' . $profilerNamespace . '.meta',
+ serialize($meta)
+ );
}
if (empty($runId)) {