Skip to content

Use --focus=<focus> to focus profiling on a named focus area #1

@danielbachhuber

Description

@danielbachhuber

Given this example:

$ wp profile --verbose
+----------------+------------------+
| Field          | Value            |
+----------------+------------------+
| hook_count     | 10737            |
| hook_time      | 0.19295263290405 |
| execution_time | 2.438s           |
| memory_usage   | 49.5mb           |
| query_count    | 192              |
| query_time     | 0.021s           |
+----------------+------------------+

For any of these named overview fields, I should be able to --focus=<field> to focus the profiling on a specific area. For instance, --focus=hook_count would give me a list of the common hooks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions