Welcome Guest, Not a member yet? Register   Sign In
Poll: Would you find a globally enabled profiler helpful?
You do not have permission to vote in this poll.
Yes, I would like to see a global switch for enabling the profiler
57.14%
8 57.14%
No, it is fine as it is.
42.86%
6 42.86%
Total 14 vote(s) 100%
* You voted for this item. [Show Results]

Enable profiler globally
#6

(This post was last modified: 04-29-2015, 02:08 PM by PaulD. Edit Reason: Improving explanation )

(04-29-2015, 11:23 AM)gadelat Wrote: He wants the option to enable it in autoload.php config.

Yes, that is exactly what I meant. Perhaps not in the autoload file specifically but certainly somewhere relevant.

Something like

Code:
/*
|--------------------------------------------------------------------------
| Profiler Global SETTING
|--------------------------------------------------------------------------
|
| This item determines if the profiler should be enabled globally on all pages.
*/
$config['enable_profiler_globally'] = FALSE;

OR even with the default display settings options as well:

Code:
$global_default_sections = array(
  'benchmarks'  => TRUE,
  'config'  => TRUE,
  'controller_info'  => TRUE,
  'get'  => TRUE,
  'http_headers'  => TRUE,
  'memory_usage'  => TRUE,
  'post'  => TRUE,
  'queries'  => TRUE,
  'uri_string'  => TRUE,
  'session_data'  => TRUE,
  'query_toggle_count'  => 25,
);


Now that would be really, really helpful IMHO :-)

I have just realized that this might be more complicated than I imagine because it would have to override the individual controller settings, but if it was available globally I don't imagine people would bother with it in individual controllers. So I suppose you would need three options, turn on for all pages, turn off for all pages, or leave it up to individual controllers to turn on if set. Then, when a site is ready for going live you could globally switch off the profiler so any controllers still set to show accidentally in individual controllers are overridden. During development you could set the global profiler on so when needed you can see it on all pages. Or you can just use it on a per controller basis as is the case now.

I think people would like that, I certainly would, so just thought I would mention it as an idea.

Best wishes,

Paul.
Reply


Messages In This Thread
Enable profiler globally - by PaulD - 04-29-2015, 02:56 AM
RE: Enable profiler globally - by mwhitney - 04-29-2015, 06:40 AM
RE: Enable profiler globally - by gadelat - 04-29-2015, 11:23 AM
RE: Enable profiler globally - by CroNiX - 04-29-2015, 01:46 PM
RE: Enable profiler globally - by gadelat - 04-29-2015, 01:50 PM
RE: Enable profiler globally - by PaulD - 04-29-2015, 01:58 PM
RE: Enable profiler globally - by ivantcholakov - 04-29-2015, 03:32 PM
RE: Enable profiler globally - by ivantcholakov - 04-29-2015, 03:36 PM
RE: Enable profiler globally - by ivantcholakov - 04-29-2015, 04:38 PM
RE: Enable profiler globally - by InsiteFX - 04-29-2015, 06:07 PM
RE: Enable profiler globally - by John_Betong - 04-29-2015, 07:22 PM
RE: Enable profiler globally - by PaulD - 04-30-2015, 05:17 AM
RE: Enable profiler globally - by PaulD - 04-30-2015, 05:15 AM
RE: Enable profiler globally - by ivantcholakov - 04-30-2015, 10:52 AM
RE: Enable profiler globally - by InsiteFX - 05-01-2015, 01:12 AM
RE: Enable profiler globally - by RWCH - 05-01-2015, 06:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB