wp profile eval <php-code>

Profile arbitrary code execution

Arguments

NameDescription
php-codeThe code to execute, as a string

Options

NameDescription
--hook <hook>Focus on key metrics for all hooks, or callbacks on a specific hook
--fields <fields>Display one or more fields
--format <format>Render output in a particular format
--order <order>Ascending or descending order
--orderby <orderby>Order by fields