method start documentation in bbn\Appui\Profiler
Starting the profiling.
function(bool $force = false)
{
if ($this->check() && !$this->is_started) {
$c = &$this->class_cfg['arch']['bbn_profiler'];
$last = $this->db->selectOne(
$this->class_table,
"MAX(`$c[time]`)"
);
if ($force || !$last || (time() - strtotime($last) > self::$delay)) {
$this->chrono->start();
if (function_exists('tideways_xhprof_enable')) {
tideways_xhprof_enable(
TIDEWAYS_XHPROF_FLAGS_MEMORY |
TIDEWAYS_XHPROF_FLAGS_CPU
);
$this->is_started = true;
return true;
}
elseif (function_exists('xhprof_enable')) {
xhprof_enable(
XHPROF_FLAGS_MEMORY |
XHPROF_FLAGS_CPU
);
$this->is_started = true;
return true;
}
}
}
return false;
}
Starting the profiling. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions