Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/178267

Change subject: Removed unused getSummaryReport method
......................................................................

Removed unused getSummaryReport method

Change-Id: Id65c6702cc2eb75047fbfa88a6b79163c7dc2528
---
M includes/profiler/ProfilerXhprof.php
1 file changed, 0 insertions(+), 32 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/67/178267/1

diff --git a/includes/profiler/ProfilerXhprof.php 
b/includes/profiler/ProfilerXhprof.php
index a4a7b30..d3d4cf1 100644
--- a/includes/profiler/ProfilerXhprof.php
+++ b/includes/profiler/ProfilerXhprof.php
@@ -215,36 +215,4 @@
                }
                return implode( "\n", $out );
        }
-
-       /**
-        * Get a brief report of profiled functions sorted by inclusive wall 
clock
-        * time in descending order.
-        *
-        * Each line of the report includes this data:
-        * - Percentage of total wall clock time spent in function
-        * - Total wall clock time spent in function in seconds
-        * - Number of times function was called
-        * - Function name
-        *
-        * @param string $header Header text to prepend to report
-        * @param string $footer Footer text to append to report
-        * @return string
-        */
-       protected function getSummaryReport( $header = '', $footer = '' ) {
-               $data = $this->xhprof->getInclusiveMetrics();
-               uasort( $data, Xhprof::makeSortFunction( 'wt', 'total' ) );
-
-               $format = '%6.2f%% %3.6f %6d - %s';
-               $out = array( $header );
-               foreach ( $data as $func => $stats ) {
-                       $out[] = sprintf( $format,
-                               $stats['wt']['percent'],
-                               $stats['wt']['total'] / 1e6,
-                               $stats['ct'],
-                               $func
-                       );
-               }
-               $out[] = $footer;
-               return implode( "\n", $out );
-       }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/178267
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id65c6702cc2eb75047fbfa88a6b79163c7dc2528
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to