method finish documentation in bbn\Appui\Profiler
Finishing the profiling and inserting profile in DB.
function(bbn\Mvc $mvc)
{
if ($this->is_started && $this->check()) {
$this->is_started = false;
$data = function_exists('tideways_xhprof_disable') ? tideways_xhprof_disable() : xhprof_disable();
$c = &$this->class_cfg['arch']['bbn_profiler'];
return (bool)$this->db->insert(
$this->class_table,
[
$c['id_user'] => $mvc->inc->user->getId(),
$c['url'] => $mvc->getRequest(),
$c['time'] => date('Y-m-d-H:i:s'),
$c['length'] => $this->chrono->stop(),
$c['content'] => serialize($data)
]
);
}
return false;
}
Finishing the profiling and inserting profile in DB. 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