X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=profileinfo.php;h=7b652b74d5d0cc42a61272ed7c5b96df0e38551c;hp=d000972051e5dc50a8136f8c98a9e0774e10e188;hb=72e141a5e33417a3f4bcb18cf8a862634bda9bee;hpb=d6016fa1f985120829cfeb596571dd844da8b4e3 diff --git a/profileinfo.php b/profileinfo.php index d000972051..7b652b74d5 100644 --- a/profileinfo.php +++ b/profileinfo.php @@ -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'; @@ -412,6 +414,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 +438,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 ); }