Do not insert page titles into querycache.qc_value
[lhc/web/wiklou.git] / profileinfo.php
index d000972..aed2447 100644 (file)
@@ -40,6 +40,8 @@
 // details of the session. Enforce this constraint with respect to session use.
 define( 'MW_NO_SESSION', 1 );
 
+define( 'MW_ENTRY_POINT', 'profileinfo' );
+
 ini_set( 'zlib.output_compression', 'off' );
 
 require __DIR__ . '/includes/WebStart.php';
@@ -176,6 +178,7 @@ if ( isset( $_REQUEST['expand'] ) ) {
                $expand[$f] = true;
        }
 }
+wfDeprecated( 'profileinfo.php', '1.34' );
 
 // phpcs:ignore Squiz.Classes.ValidClassName.NotCamelCaps
 class profile_point {
@@ -412,6 +415,7 @@ $filter = $_REQUEST['filter'] ?? '';
        $queries = [];
        $sqltotal = 0.0;
 
+       /** @var profile_point|false $last */
        $last = false;
        foreach ( $res as $o ) {
                $next = new profile_point( $o->pf_name, $o->pf_count, $o->pf_time, $o->pf_memory );
@@ -435,7 +439,7 @@ $filter = $_REQUEST['filter'] ?? '';
                }
        }
 
-       $s = new profile_point( 'SQL Queries', 0, $sqltotal, 0, 0 );
+       $s = new profile_point( 'SQL Queries', 0, $sqltotal, 0 );
        foreach ( $queries as $q ) {
                $s->add_child( $q );
        }