• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display profiler data


Is it possible to get the profiler data without displaying it at the bottom of the page?

I want to show some of the profiler info (execution time, queries used) on my page but in a custom div.

Is it possible?

Well I have not done this myself but just to get you started if you look at the profiler.php in system library the final function is the run command.

It outputs the profile into a div.

$output = "<div id='codeigniter_profiler' style='clear:both;background-color:#fff;padding:10px;'>";

So if you wanted that to display somewhere else on your page just change the css values or do it by #codeigniter_profiler in the css.

Then if you didnt want all profile messages just comment out the ones you didnt want within the run function.

Good Luck!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.