INSTALLING INSTALLING
Use the wp profile
command by installing the command's package:
wp package install wp-cli/profile-command
Once the package is successfully installed, the wp profile
command will appear in the list of available commands.
SUBCOMMANDS SUBCOMMANDS
Name | Description |
---|---|
wp profile eval | Profile arbitrary code execution. |
wp profile eval-file | Profile execution of an arbitrary file. |
wp profile hook | Profile key metrics for WordPress hooks (actions and filters). |
wp profile stage | Profile each stage of the WordPress load process (bootstrap, main_query, template). |
Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.