original_string: public function recordProfiling()
      {
          if (is_null($this->connection)) {
              return;
          }
  
          // turn off the profiler so we don't profile the following queries
          self::$profiling = false;
  
          foreach ($this->queriesProfiling as $query => $info) {
              $time  = $info['sum_time_ms'];
              $time  = Common::forceDotAsSeparatorForDecimalPoint($time);
              $count = $info['count'];
  
              $queryProfiling = "INSERT INTO " . Common::prefixTable('log_profiling') . "
  						(query,count,sum_time_ms) VALUES (?,$count,$time)
  						ON DUPLICATE KEY UPDATE count=count+$count,sum_time_ms=sum_time_ms+$time";
              $this->query($queryProfiling, array($query));
          }
  
          // turn back on profiling
          self::$profiling = true;
      }
code: public function recordProfiling()
      {
          if (is_null($this->connection)) {
              return;
          }
  
          // turn off the profiler so we don't profile the following queries
          self::$profiling = false;
  
          foreach ($this->queriesProfiling as $query => $info) {
              $time  = $info['sum_time_ms'];
              $time  = Common::forceDotAsSeparatorForDecimalPoint($time);
              $count = $info['count'];
  
              $queryProfiling = "INSERT INTO " . Common::prefixTable('log_profiling') . "
  						(query,count,sum_time_ms) VALUES (?,$count,$time)
  						ON DUPLICATE KEY UPDATE count=count+$count,sum_time_ms=sum_time_ms+$time";
              $this->query($queryProfiling, array($query));
          }
  
          // turn back on profiling
          self::$profiling = true;
      }
code_tokens: public function recordProfiling ( ) { if ( is_null ( $ this -> connection ) ) { return ; } // turn off the profiler so we don't profile the following queries self :: $ profiling = false ; foreach ( $ this -> queriesProfiling as $ query => $ info ) { $ time = $ info [ 'sum_time_ms' ] ; $ time = Common :: forceDotAsSeparatorForDecimalPoint ( $ time ) ; $ count = $ info [ 'count' ] ; $ queryProfiling = "INSERT INTO " . Common :: prefixTable ( 'log_profiling' ) . "
  						(query,count,sum_time_ms) VALUES (?,$count,$time)
  						ON DUPLICATE KEY UPDATE count=count+$count,sum_time_ms=sum_time_ms+$time" ; $ this -> query ( $ queryProfiling , array ( $ query ) ) ; } // turn back on profiling self :: $ profiling = true ; }
docstring: When destroyed, if SQL profiled enabled, logs the SQL profiling information
docstring_tokens: When destroyed if SQL profiled enabled logs the SQL profiling information