Step 2: Profiling
Profiling inside the code
Innomatic 7 architectural change
Innomatic 7.x will use the Symfony profiler.
Innomatic provides a profiling tool with the Innomatic\Debug\LoadTimer class, that is automatically instanced during Innomatic bootstrap.
To set a marker during code execution:Â
$timer = \Innomatic\Core\InnomaticContainer::instance(‘\Innomatic\Core\InnomaticContainer’)->getLoadTimer(); $timer->start(‘my_section’); ...your code... $timer->mark(‘my_section’); ...your code... $timer->mark(‘my_section’); $timer->stop(‘my_section’);
Next:Â Step 3: Innomatic debugging mode and Innocoder Debugger