MediaWiki r9500 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r9499‎ | r9500 (on ViewVC)‎ | r9501 >
Date:10:17, 19 June 2005
Author:timstarling
Status:old
Tags:
Comment:
fixed checked-in conflict marker
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/Profiling.php
@@ -161,24 +161,6 @@
162162
163163 # The ugly double sprintf is to work around a PHP bug,
164164 # which has been fixed in recent releases.
165 -<<<<<<< Profiling.php
166 - return sprintf("%10s %s %s\n", trim(sprintf("%7.3f", $delta * 1000.0)), $space, $fname);
167 - }
168 -
169 - function micro2Float($micro) {
170 - list ($whole, $fractional) = explode(' ', $micro);
171 - return (float) $whole + (float) $fractional;
172 - }
173 -
174 - function microDelta($start, $end) {
175 - return $this->micro2Float($end) - $this->micro2Float($start);
176 - }
177 -
178 - function getFunctionReport() {
179 - $width = 125;
180 - $format = "%-". ($width -34)."s %6d %6.3f %6.3f %7.3f%% %6d (%6.3f-%6.3f) [%d]\n";
181 - $titleFormat = "%-". ($width -34)."s %9s %9s %9s %9s %6s\n";
182 -=======
183165 return sprintf( "%10s %s %s\n",
184166 trim( sprintf( "%7.3f", $delta * 1000.0 ) ),
185167 $space, $fname );
@@ -204,7 +186,6 @@
205187 $nameWidth = $width - 65;
206188 $format = "%-{$nameWidth}s %6d %13.3f %13.3f %13.3f%% %9d (%13.3f -%13.3f) [%d]\n";
207189 $titleFormat = "%-{$nameWidth}s %6s %13s %13s %13s %9s %14s %14s %9s\n";
208 ->>>>>>> 1.29.2.6
209190 $prof = "\nProfiling data\n";
210191 $prof .= sprintf($titleFormat, 'Name', 'Calls', 'Total', 'Each', '%', 'Mem');
211192 $this->mCollated = array ();

Status & tagging log

  • 01:56, 13 October 2010 ^demon (Talk | contribs) changed the status of r9500 [removed: new added: old]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox