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:
-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);