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 based on new argument
This commit is contained in:
parent
fefcc60b0d
commit
bb5a2ac97b
1 changed files with 8 additions and 2 deletions
10
README.md
10
README.md
|
@ -144,7 +144,7 @@ will need to execute during the course of the request.
|
||||||
Profile arbitrary code execution.
|
Profile arbitrary code execution.
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
wp profile eval <php-code> [--fields=<fields>] [--format=<format>]
|
wp profile eval <php-code> [--hook[=<hook>]] [--fields=<fields>] [--format=<format>]
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
Code execution happens after WordPress has loaded entirely, which means
|
Code execution happens after WordPress has loaded entirely, which means
|
||||||
|
@ -156,6 +156,9 @@ current theme.
|
||||||
<php-code>
|
<php-code>
|
||||||
The code to execute, as a string.
|
The code to execute, as a string.
|
||||||
|
|
||||||
|
[--hook[=<hook>]]
|
||||||
|
Focus on key metrics for all hooks, or callbacks on a specific hook.
|
||||||
|
|
||||||
[--fields=<fields>]
|
[--fields=<fields>]
|
||||||
Display one or more fields.
|
Display one or more fields.
|
||||||
|
|
||||||
|
@ -177,7 +180,7 @@ current theme.
|
||||||
Profile execution of an arbitrary file.
|
Profile execution of an arbitrary file.
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
wp profile eval-file <file> [--fields=<fields>] [--format=<format>]
|
wp profile eval-file <file> [--hook[=<hook>]] [--fields=<fields>] [--format=<format>]
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
File execution happens after WordPress has loaded entirely, which means
|
File execution happens after WordPress has loaded entirely, which means
|
||||||
|
@ -189,6 +192,9 @@ current theme.
|
||||||
<file>
|
<file>
|
||||||
The path to the PHP file to execute and profile.
|
The path to the PHP file to execute and profile.
|
||||||
|
|
||||||
|
[--hook[=<hook>]]
|
||||||
|
Focus on key metrics for all hooks, or callbacks on a specific hook.
|
||||||
|
|
||||||
[--fields=<fields>]
|
[--fields=<fields>]
|
||||||
Display one or more fields.
|
Display one or more fields.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue