Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 8cb9309

Browse files
author
Lori Krell
committed
Reset 2.1 file
1 parent e53522b commit 8cb9309

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

guides/v2.1/config-guide/bootstrap/mage-profiler.md

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ title: Enable profiling (MAGE_PROFILER)
55
menu_title: Enable profiling (MAGE_PROFILER)
66
menu_order: 7
77
menu_node:
8-
version: 2.2
8+
version: 2.1
99
github_link: config-guide/bootstrap/mage-profiler.md
10+
redirect_from: /guides/v1.0/config-guide/bootstrap/mage-profiler.html
1011
functional_areas:
1112
- Configuration
1213
- System
@@ -25,12 +26,8 @@ Magento profiling enables you to:
2526

2627
Magento provides the base functionality in [Magento\\Framework\\Profiler]({{ site.mage2000url }}lib/internal/Magento/Framework/Profiler.php){:target="_blank"}.
2728

28-
You can enable and configure the profiler using a [MAGE_PROFILER](#variable) variable or the [command line](#cli).
29-
3029
## Set MAGE_PROFILER {#variable}
3130

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-
3431
`MAGE_PROFILER` supports the following values:
3532

3633
- `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
4643

4744
![]({{ site.baseurl }}/common/images/config_depend-graphs.png)
4845

49-
## CLI commands {#cli}
50-
51-
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

Comments
 (0)