CLI commands
You can enable or disable the profiler using CLI commands:
dev:profiler:enable <type>
enables the profiler withtype
ofhtml
(default) orcsvfile
. When enabled, a flagfilevar/profiler.flag
is created.dev:profiler:disable
disables the profiler. When disabled, the flagfilevar/profiler.flag
is removed.
To enable dependency graphs, use the variable option.
To enable or disable the profiler:
-
Log in to your Commerce server.
-
Change to your Commerce installation directory.
-
As the file system owner, enable the profiler:
To enable the profiler using type
html
and create a flagfile:bin/magento dev:profiler:enable html
To enable the profiler using type
csvfile
and create a flagfile:bin/magento dev:profiler:enable csvfile
The output is saved to
<project-root>/var/log/profiler.csv
. Theprofiler.csv
is overridden on each page refresh.To disable the profiler and remove the flagfile:
bin/magento dev:profiler:disable
Previous pageBootstrap parameters
Next pageBase directory paths