/
Step 2: Profiling
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
, multiple selections available,
Related content
Step 3: Innomatic debugging mode and Innocoder Debugger
Step 3: Innomatic debugging mode and Innocoder Debugger
More like this
Step 1: Unit testing
Step 1: Unit testing
More like this
Step 1: Logs
Step 1: Logs
More like this
Step 4: The Innomatic Container
Step 4: The Innomatic Container
More like this
Step 4: Setting the environment type
Step 4: Setting the environment type
More like this
Legacy code and features
Legacy code and features
More like this