From 9ed769df16bf03175cbf0069e6b33663b778ac7d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 8 Dec 2014 12:52:01 -0800 Subject: [PATCH] Removed unused getSummaryReport method Change-Id: Id65c6702cc2eb75047fbfa88a6b79163c7dc2528 --- includes/profiler/ProfilerXhprof.php | 32 ---------------------------- 1 file changed, 32 deletions(-) diff --git a/includes/profiler/ProfilerXhprof.php b/includes/profiler/ProfilerXhprof.php index a4a7b30900..d3d4cf1398 100644 --- a/includes/profiler/ProfilerXhprof.php +++ b/includes/profiler/ProfilerXhprof.php @@ -215,36 +215,4 @@ class ProfilerXhprof extends Profiler { } 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 ); - } } -- 2.20.1