Sort results by total time
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 21 Aug 2004 13:57:47 +0000 (13:57 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 21 Aug 2004 13:57:47 +0000 (13:57 +0000)
includes/Profiling.php

index 1997cf5..a6c49eb 100755 (executable)
@@ -141,6 +141,7 @@ class Profiler
                $this->mCalls["-overhead-total"] = $profileCount;
 
                # Output
+               arsort( $this->mCollated, SORT_NUMERIC );
                foreach ( $this->mCollated as $fname => $elapsed ) {
                        $calls = $this->mCalls[$fname];
                        # Adjust for overhead