diff options
author | diosmosis <benaka@piwik.pro> | 2015-05-06 04:40:43 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-05-06 04:40:43 +0300 |
commit | 9876af9c6200c301fb5dd89f82837a48826d8c94 (patch) | |
tree | d3e696d9886aa54dc01e3c1960b03bcc7fb38c48 /core/Profiler.php | |
parent | 27eae8c85a2680d2a83edb34b5b8da2699401219 (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.php | 6 |
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); |