From 274b9ac0acd2a8187e4062fa6dccee4f10e587d2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 29 Apr 2008 15:42:51 +0000 Subject: [PATCH] * No need to *1000 * Hide div-by-zero messages * Fix kb factor --- includes/Profiler.php | 2 +- profileinfo.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/Profiler.php b/includes/Profiler.php index 6ac42c6687..c0fedfc14c 100644 --- a/includes/Profiler.php +++ b/includes/Profiler.php @@ -271,7 +271,7 @@ class Profiler { global $wgProfileToDatabase; if ($wgProfileToDatabase) { - Profiler :: logToDB($fname, (float) ($elapsed * 1000), $calls, (float) ($memory * 1000) ); + Profiler :: logToDB($fname, (float) ($elapsed * 1000), $calls, (float) ($memory) ); } } $prof .= "\nTotal: $total\n\n"; diff --git a/profileinfo.php b/profileinfo.php index e330a6eaa0..ab28785e66 100644 --- a/profileinfo.php +++ b/profileinfo.php @@ -124,14 +124,14 @@ class profile_point { name()) . $extet ?> - time() / $totaltime * 100 ) ?> - memory() / $totalmemory * 100 ) ?> + time() / $totaltime * 100 ) ?> + memory() / $totalmemory * 100 ) ?> count() ?> callsPerRequest() ), 2 ) ?> timePerCall() ), 2 ) ?> - memoryPerCall() / 1048576 ), 2 ) ?> - time() / $totalcount ), 2 ) ?> - memory() / $totalcount / 1048576 ), 2 ) ?> + memoryPerCall() / 1024 ), 2 ) ?> + time() / $totalcount ), 2 ) ?> + memory() / $totalcount / 1024 ), 2 ) ?>

Total time:

-

Total memory:

+

Total memory: