Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
timers.php
Go to the documentation of this file.
1 <?php
8 $timer = new \Magento\Framework\Profiler\Driver\Standard\Stat();
9 $timer->start('root', 0.01, 50000, 1000);
10 
11 $timer->start('root->init', 0.02, 55000, 1400);
12 
13 $timer->start('root->init->init_store', 0.02, 55000, 1400);
14 $timer->stop('root->init->init_store', 0.03, 56000, 1450);
15 $timer->start('root->init->init_store', 0.02, 56500, 1550);
16 $timer->stop('root->init->init_store', 0.03, 57500, 1600);
17 
18 $timer->stop('root->init', 0.06, 57500, 1600);
19 
20 $timer->stop('root', 0.09, 100000, 2000);
21 
22 $timer->start('system', 0.11, 50000, 1000);
23 $timer->stop('system', 0.13, 60000, 1200);
24 $timer->start('system', 0.14, 50000, 1000);
25 $timer->stop('system', 0.15, 60000, 1200);
26 
27 return $timer;
$timer
Definition: timers.php:8