diff --git a/README.md b/README.md index e032f88..4cc003d 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ will need to execute during the course of the request. Profile arbitrary code execution. ~~~ -wp profile eval [--fields=] [--format=] +wp profile eval [--hook[=]] [--fields=] [--format=] ~~~ Code execution happens after WordPress has loaded entirely, which means @@ -156,6 +156,9 @@ current theme. The code to execute, as a string. + [--hook[=]] + Focus on key metrics for all hooks, or callbacks on a specific hook. + [--fields=] Display one or more fields. @@ -177,7 +180,7 @@ current theme. Profile execution of an arbitrary file. ~~~ -wp profile eval-file [--fields=] [--format=] +wp profile eval-file [--hook[=]] [--fields=] [--format=] ~~~ File execution happens after WordPress has loaded entirely, which means @@ -189,6 +192,9 @@ current theme. The path to the PHP file to execute and profile. + [--hook[=]] + Focus on key metrics for all hooks, or callbacks on a specific hook. + [--fields=] Display one or more fields.