includes/profiler/SectionProfiler.php
Method getFunctionStats
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getFunctionStats() {
$this->collateData();
if ( is_array( $this->start ) && is_array( $this->end ) ) {
$totalCpu = max( $this->end['cpu'] - $this->start['cpu'], 0 );
Method profileOutInternal
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function profileOutInternal( $functionname ) {
$item = array_pop( $this->workStack );
if ( $item === null ) {
$this->logger->error( "Profiling error: $functionname" );
return;