mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:38:51 +08:00
Regenerate README for command split
This commit is contained in:
parent
b22d0f85c7
commit
87b192afa3
3 changed files with 40 additions and 10 deletions
45
README.md
45
README.md
|
@ -84,26 +84,55 @@ Et voila! You've identified some of the sources of slowness.
|
|||
|
||||
## Using
|
||||
|
||||
This package implements the following commands:
|
||||
|
||||
### wp profile stage
|
||||
|
||||
Profile each stage of the WordPress load process (bootstrap, main_query, template).
|
||||
|
||||
~~~
|
||||
wp profile [--url=<url>] [--stage=<stage>] [--hook=<hook>] [--fields=<fields>] [--format=<format>]
|
||||
wp profile stage [<stage>] [--url=<url>] [--fields=<fields>] [--format=<format>]
|
||||
~~~
|
||||
|
||||
**OPTIONS**
|
||||
|
||||
[<stage>]
|
||||
Drill down into a specific stage.
|
||||
|
||||
[--url=<url>]
|
||||
Execute a request against a specified URL. Defaults to the home URL.
|
||||
|
||||
[--stage=<stage>]
|
||||
Drill down into a specific stage.
|
||||
[--fields=<fields>]
|
||||
Display one or more fields.
|
||||
|
||||
[--format=<format>]
|
||||
Render output in a particular format.
|
||||
---
|
||||
default: table
|
||||
options:
|
||||
- bootstrap
|
||||
- main_query
|
||||
- template
|
||||
- table
|
||||
- json
|
||||
- yaml
|
||||
- csv
|
||||
---
|
||||
|
||||
[--hook=<hook>]
|
||||
Drill down into a specific hook.
|
||||
|
||||
|
||||
### wp profile hook
|
||||
|
||||
Profile key metrics for a WordPress hook (action or filter).
|
||||
|
||||
~~~
|
||||
wp profile hook <hook> [--url=<url>] [--fields=<fields>] [--format=<format>]
|
||||
~~~
|
||||
|
||||
**OPTIONS**
|
||||
|
||||
<hook>
|
||||
WordPress hook (action or filter) to profile.
|
||||
|
||||
[--url=<url>]
|
||||
Execute a request against a specified URL. Defaults to the home URL.
|
||||
|
||||
[--fields=<fields>]
|
||||
Display one or more fields.
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
},
|
||||
"extra": {
|
||||
"commands": [
|
||||
"profile"
|
||||
"profile stage",
|
||||
"profile hook"
|
||||
],
|
||||
"readme": {
|
||||
"shields": [
|
||||
|
|
|
@ -17,7 +17,7 @@ class Command {
|
|||
private static $exception_message = "Need to bail, because can't restore the hooks";
|
||||
|
||||
/**
|
||||
* Profile each stage of the WordPress load process.
|
||||
* Profile each stage of the WordPress load process (bootstrap, main_query, template).
|
||||
*
|
||||
* ## OPTIONS
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue