• jmslbam

    (@jmslbam)


    Hi! How are you?
    I tried to find a way to profile a custom WP-CLI command, but that’s kind of hard.

    As in, maybe a Trait one could use in your custom Command and call $this->start_profiling('profile-name'); before you logic starts and optional a $this->end_profiling(); ?
    Example of a simple, but effective Trait I built a while ago https://github.com/jmslbam/wp-cli-base-command/blob/main/src/Bulk_Task.php

    Kind regards,

    Jaime Martinez

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.