profiler: Deprecate ProfilerOutputDb and profileinfo.php
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 11 Oct 2019 22:55:34 +0000 (23:55 +0100)
committerKrinkle <krinklemail@gmail.com>
Tue, 15 Oct 2019 20:03:07 +0000 (20:03 +0000)
Bug: T231366
Change-Id: I962a794c6806aa014af4b904e8b974fb0f4384b0
(cherry picked from commit 7b87584d87d69d1de2209b13c767a08475b47f6e)

RELEASE-NOTES-1.34
includes/profiler/output/ProfilerOutputDb.php
profileinfo.php

index fbc29d7..ed2cf9c 100644 (file)
@@ -516,6 +516,8 @@ because of Phabricator reports.
 * The Profiler::setTemplated and Profiler::getTemplated methods have been
   deprecated. Use Profiler::setAllowOutput and Profiler::getAllowOutput
   instead.
 * The Profiler::setTemplated and Profiler::getTemplated methods have been
   deprecated. Use Profiler::setAllowOutput and Profiler::getAllowOutput
   instead.
+* The ProfilerOutputDb class, 'profiling' table, and profileinfo.php entry
+  point had been deprecated (T231366).
 * The Preprocessor_DOM implementation has been deprecated.  It will be
   removed in a future release.  Use the Preprocessor_Hash implementation
   instead.
 * The Preprocessor_DOM implementation has been deprecated.  It will be
   removed in a future release.  Use the Preprocessor_Hash implementation
   instead.
index ea5f7ad..27bcaee 100644 (file)
@@ -28,6 +28,7 @@ use Wikimedia\Rdbms\DBError;
  *
  * @ingroup Profiler
  * @since 1.25
  *
  * @ingroup Profiler
  * @since 1.25
+ * @deprecated since 1.34 No longer maintained (T231366)
  */
 class ProfilerOutputDb extends ProfilerOutput {
        /** @var bool Whether to store host data with profiling calls */
  */
 class ProfilerOutputDb extends ProfilerOutput {
        /** @var bool Whether to store host data with profiling calls */
@@ -35,6 +36,7 @@ class ProfilerOutputDb extends ProfilerOutput {
 
        public function __construct( Profiler $collector, array $params ) {
                parent::__construct( $collector, $params );
 
        public function __construct( Profiler $collector, array $params ) {
                parent::__construct( $collector, $params );
+               wfDeprecated( __CLASS__, '1.34' );
 
                // Initialize per-host profiling from config, back-compat if available
                if ( isset( $this->params['perHost'] ) ) {
 
                // Initialize per-host profiling from config, back-compat if available
                if ( isset( $this->params['perHost'] ) ) {
index 7b652b7..aed2447 100644 (file)
@@ -178,6 +178,7 @@ if ( isset( $_REQUEST['expand'] ) ) {
                $expand[$f] = true;
        }
 }
                $expand[$f] = true;
        }
 }
+wfDeprecated( 'profileinfo.php', '1.34' );
 
 // phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
 class profile_point {
 
 // phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
 class profile_point {