Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce wp profile requests #129

Open
danielbachhuber opened this issue Jan 3, 2017 · 3 comments
Open

Introduce wp profile requests #129

danielbachhuber opened this issue Jan 3, 2017 · 3 comments

Comments

@danielbachhuber
Copy link
Member

It would be helpful to be able to see all requests and how much time they're taking.

@Sidsector9
Copy link
Member

@danielbachhuber , can you please elaborate this feature request?

@danielbachhuber
Copy link
Member Author

The idea is to create a wp profile requests command that would minor execution time, etc. for all HTTP requests made during the WordPress load process.

Here's where we're already hooking into the HTTP request process to observe timing:

WP_CLI::add_wp_hook( 'pre_http_request', array( $this, 'wp_request_begin' ) );
WP_CLI::add_wp_hook( 'http_api_debug', array( $this, 'wp_request_end' ) );

@Sidsector9
Copy link
Member

I think this is going to be beyond my scope 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants