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:
authordiosmosis <benaka@piwik.pro>2015-05-06 04:40:43 +0300
committerdiosmosis <benaka@piwik.pro>2015-05-06 04:40:43 +0300
commit9876af9c6200c301fb5dd89f82837a48826d8c94 (patch)
treed3e696d9886aa54dc01e3c1960b03bcc7fb38c48 /core/Profiler.php
parent27eae8c85a2680d2a83edb34b5b8da2699401219 (diff)
Fixes #7708, in summary of XHProf output message, display warning if development mode is enabled.
Diffstat (limited to 'core/Profiler.php')
-rw-r--r--core/Profiler.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/Profiler.php b/core/Profiler.php
index e842994a8f..e3bbfb47e3 100644
--- a/core/Profiler.php
+++ b/core/Profiler.php
@@ -273,6 +273,12 @@ class Profiler
$out .= "<a href='$baseUrl'>$baseUrl</a>";
$out .= "\n\n";
+ if (Development::isEnabled()) {
+ $out .= "WARNING: Development mode is enabled. Many runtime optimizations are not applied in development mode. ";
+ $out .= "Unless you intend to profile Piwik in development mode, your profile may not be accurate.";
+ $out .= "\n\n";
+ }
+
echo $out;
} else {
Profiler::setProfilingRunIds($runs);