You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
@@ -25,12 +26,8 @@ Magento profiling enables you to:
25
26
26
27
Magento provides the base functionality in [Magento\\Framework\\Profiler]({{ site.mage2000url }}lib/internal/Magento/Framework/Profiler.php){:target="_blank"}.
27
28
28
-
You can enable and configure the profiler using a [MAGE_PROFILER](#variable) variable or the [command line](#cli).
29
-
30
29
## Set MAGE_PROFILER {#variable}
31
30
32
-
You can set the value of `MAGE_PROFILER` in any of the ways discussed in [Set the value of bootstrap parameters]({{ page.baseurl }}/config-guide/bootstrap/magento-how-to-set.html).
33
-
34
31
`MAGE_PROFILER` supports the following values:
35
32
36
33
-`1` to enable a specific profiler's output.
@@ -46,28 +43,4 @@ You can set the value of `MAGE_PROFILER` in any of the ways discussed in [Set th
You can enable or disable the profiler using CLI commands:
52
-
53
-
-`dev:profiler:enable <type>` enables the profiler with `type` of `html` (default) or `csvfile`. When enabled, a flagfile `var/profiler.flag` is created.
54
-
-`dev:profiler:disable` disables the profiler. When disabled, the flagfile `var/profiler.flag` is removed.
55
-
56
-
To enable or diable the profiler:
57
-
58
-
1. Use a terminal application to access your Magento instance.
59
-
1. Log in to the Magento server as, or switch to, a user who has permissions to write to the Magento file system.
60
-
1. Navigate to the root directory of your Magento 2 installation.
61
-
1. Enter `php bin/magento` with one of the commands to configure the profiler:
62
-
63
-
To enable the profiler and create a flagfile:
64
-
65
-
```bash
66
-
php bin/magento dev:profiler:enable
67
-
```
68
-
69
-
To disable the profiler and remove the flagfile:
70
-
71
-
```bash
72
-
php bin/magento dev:profiler:disable
73
-
```
46
+
You can set the value of `MAGE_PROFILER` in any of the ways discussed in [Set the value of bootstrap parameters]({{ page.baseurl }}/config-guide/bootstrap/magento-how-to-set.html).
0 commit comments