src/Log/PerfAnalyser.php
public function renderTimeReport($titre = 'Rapport de performance')
  {
    if (Debug::getEnabled() || Config::get('reportTimeEnabled')) {
      $this->_addPoint('[STOP]');
      $diff = $this->points[count($this->points) - 1]['time'] - $this->points[0]['time'];

      $dump = '';

      $c = count($this->points);
      for ($i = 0; $i < $c; $i++) {
        $dump .= sprintf(
          '<div class="dump_segment_content_point"><b>%s</b> %s :: <b>%s ms</b></div>',
          $this->points[$i]['entete'],
          $this->points[$i]['contexte'],
          $this->points[$i]['elapsed']
        );
      }

      $dump .= sprintf(
        '<div class="dump_segment_content_pointend"><b>TOTAL : %s ms</b></div>',
        $diff
      );

      print Debug::getCustomTrace($titre, array(array('name' => 'Points d\'analyse', 'content' => $dump)));
    }
  }
public function renderTimeReport($titre = 'Rapport de performance')
  {
    if (Debug::getEnabled() || Config::get('reportTimeEnabled')) {
      $this->_addPoint('[STOP]');
      $diff = $this->points[count($this->points) - 1]['time'] - $this->points[0]['time'];

      $dump = '';

      $c = count($this->points);
      for ($i = 0; $i < $c; $i++) {
        $dump .= sprintf(
          '<div class="dump_segment_content_point"><b>%s</b> %s :: <b>%s ms</b></div>',
          $this->points[$i]['entete'],
          $this->points[$i]['contexte'],
          $this->points[$i]['elapsed']
        );
      }

      $dump .= sprintf(
        '<div class="dump_segment_content_pointend"><b>TOTAL : %s ms</b></div>',
        $diff
      );

      print Debug::getCustomTrace($titre, array(array('name' => 'Points d\'analyse', 'content' => $dump)));
    }
  }
public function renderTimeReport ( $ titre = 'Rapport de performance' ) { if ( Debug :: getEnabled ( ) || Config :: get ( 'reportTimeEnabled' ) ) { $ this -> _addPoint ( '[STOP]' ) ; $ diff = $ this -> points [ count ( $ this -> points ) - 1 ] [ 'time' ] - $ this -> points [ 0 ] [ 'time' ] ; $ dump = '' ; $ c = count ( $ this -> points ) ; for ( $ i = 0 ; $ i < $ c ; $ i ++ ) { $ dump .= sprintf ( '<div class="dump_segment_content_point"><b>%s</b> %s :: <b>%s ms</b></div>' , $ this -> points [ $ i ] [ 'entete' ] , $ this -> points [ $ i ] [ 'contexte' ] , $ this -> points [ $ i ] [ 'elapsed' ] ) ; } $ dump .= sprintf ( '<div class="dump_segment_content_pointend"><b>TOTAL : %s ms</b></div>' , $ diff ) ; print Debug :: getCustomTrace ( $ titre , array ( array ( 'name' => 'Points d\'analyse' , 'content' => $ dump ) ) ) ; } }
Génère et affiche un rapport de performances. (Ajoute un dernier point de contrôle qui clôt l'analyse)

@param string $titre  (optional) Titre du rapport ('Rapport de performance' par défaut)
Génère et affiche un rapport de performances . ( Ajoute un dernier point de contrôle qui clôt l analyse )