wp profile eval-file <file>

Profile execution of an arbitrary file

Arguments

NameDescription
fileThe path to the PHP file to execute and profile

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