Skip to content
  • Eloy Lafuente's avatar
    MDL-26891 profiling - earlier runs · c646dd26
    Eloy Lafuente authored
    This allows profiling to be started earlier in the
    setup.php execution, by configuring everything in
    the config.php file. That way some interesting code
    is also profiled, like DB connections, load of config records...
    
    100% compatible with normal profiling and enabled via
    special setting $CFG->earlyprofilingenabled
    
    Example (to be put on config.php):
    
    $CFG->earlyprofilingenabled = true;
    $CFG->profilingautofrec = 3;
    $CFG->profilingincluded = '/*';
    $CFG->profilingallowme = true;
    
    (to enable early profiling for 1/3 of any requests while also
    allowing to use the PROFILEME PGC)
    c646dd26