Link-link penting menjadi penulis bersama IndevCenter

Print ALL Executed Query Codeigniter

Pasang di awal code:

$this->benchmark->mark('code_start');
			 $this->output->enable_profiler(TRUE);
			 $sections = array(
    'config'  => TRUE,
    'queries' => TRUE
    );
$this->output->set_profiler_sections($sections);

Pasang diakhir Sebagai result:

$this->benchmark->mark('code_end');
												echo $this->benchmark->elapsed_time('code_start', 'code_end');
												echo "<br />Total Exec Time: " . $this->benchmark->elapsed_time('total_execution_time_start','total_execution_time_end');
			//
			echo "<br />Base Class Load Time: " . $this->benchmark->elapsed_time('loading_time:_base_classes_start','loading_time:_base_classes_end');
			//
			$class = $this->router->fetch_class();
			$method = $this->router->fetch_method();
			echo "<br />Controller / Method ( {$class} / {$method} ) Exec Time: " . $this->benchmark->elapsed_time('controller_execution_time_( '.$class.' / '.$method.' )_start','controller_execution_time_( '.$class.' / '.$method.' )_end');
			//
			echo "<br />Total Query Exec Time: " . number_format($this->db->benchmark,4);
			echo $this->output->_display();