profile-command icon indicating copy to clipboard operation
profile-command copied to clipboard

Introduce `wp profile requests`

Open danielbachhuber opened this issue 7 years ago • 3 comments

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

danielbachhuber avatar Jan 03 '17 21:01 danielbachhuber

@danielbachhuber , can you please elaborate this feature request?

Sidsector9 avatar Oct 11 '17 10:10 Sidsector9

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:

https://github.com/wp-cli/profile-command/blob/d21d2d915b7c81c2b0cb7e4bb9af1f9cff45f429/inc/class-profiler.php#L115-L116

danielbachhuber avatar Oct 11 '17 16:10 danielbachhuber

I think this is going to be beyond my scope :sweat_smile:

Sidsector9 avatar Oct 13 '17 06:10 Sidsector9