PhalconDebug::startMeasure PHP Method

startMeasure() public static method

Start a new timeline measure with a given name
public static startMeasure ( string $name, null $label = null )
$name string internal name, use to stop measure
$label null
    public static function startMeasure($name, $label = null)
    {
        self::debugbar()->startMeasure($name, $label);
    }

Usage Example

Ejemplo n.º 1
0
 public function indexAction($page = 1)
 {
     \PhalconDebug::startMeasure('s0', '控制器加载');
     $builder = $this->modelsManager->createBuilder()->from('Files')->orderBy('id DESC');
     $this->view->page = $this->getPaginatorByQueryBuilder($builder, 25, $page);
     $this->view->page->statistics = myParser::getStatistics();
     \PhalconDebug::stopMeasure('s0');
 }