Exemple #1
0
function phabricator_startup()
{
    // Load the PhabricatorStartup class itself.
    $t_startup = microtime(true);
    $root = dirname(dirname(__FILE__));
    require_once $root . '/support/PhabricatorStartup.php';
    // If the preamble script exists, load it.
    $t_preamble = microtime(true);
    $preamble_path = $root . '/support/preamble.php';
    if (file_exists($preamble_path)) {
        require_once $preamble_path;
    }
    $t_hook = microtime(true);
    PhabricatorStartup::didStartup($t_startup);
    PhabricatorStartup::recordStartupPhase('startup.init', $t_startup);
    PhabricatorStartup::recordStartupPhase('preamble', $t_preamble);
    PhabricatorStartup::recordStartupPhase('hook', $t_hook);
}