Merge pull request #8 from runcommand/total-first

Display the total counts first, as its more useful
This commit is contained in:
Daniel Bachhuber 2016-08-24 12:24:11 -07:00 committed by GitHub
commit d9c8323c71

View file

@ -64,7 +64,7 @@ class Profile_Command {
'hook_time', 'hook_time',
'memory_usage', 'memory_usage',
); );
foreach( array( 'bootstrap', 'main_query', 'template', 'total' ) as $scope ) { foreach( array( 'total', 'bootstrap', 'main_query', 'template' ) as $scope ) {
$this->scope_log[ $scope ] = array(); $this->scope_log[ $scope ] = array();
foreach( $scope_fields as $field ) { foreach( $scope_fields as $field ) {
if ( 'scope' === $field ) { if ( 'scope' === $field ) {