Intekhab Rizvi
All projects

CIProfiler: MongoDB profiler for CodeIgniter

See the MongoDB queries your CodeIgniter application runs, right in the profiler.

Language
PHP
Framework
CodeIgniter
Database
MongoDB
Requires
CIMongo

Overview

CIProfiler is a MongoDB profiler for the CodeIgniter framework. It plugs into CodeIgniter's own profiler output so you can see the MongoDB queries your application runs while you develop.

Prerequisites

CIProfiler needs an up-to-date CIMongo library, so install that first. Setup is covered in the CIMongo documentation.

Installation

  1. Enable hooks in application/config/config.php:
    $config['enable_hooks'] = TRUE;
    
  2. Copy the downloaded files into the matching folders of your application: config, libraries and plugins. Take care not to overwrite files you have customised, and create the plugins folder if it does not exist.
  3. Enable the profiler wherever you need it, for example in a controller:
    $this->output->enable_profiler(TRUE);
    

With the profiler on, the new MongoDB profiler appears in the output.