Profiler can be run anywhere in the code as:
$this->profiler = new Profiler; // some of your actions and questions echo $this->profiler->render(TRUE);