• Resolved Offsprout

    (@offsprout)


    Hey, is there a way that I could get the memory usage of a REST API request?

    Let’s say I’m authenticated and on the front end. I load a page. Then I take an action that fires off a REST API request to retrieve additional data. Could I see the memory usage of this request?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Yep! In the HTTP headers of the response from an authenticated REST API response you’ll see some data added by QM. For now it shows an overview plus any PHP errors.

    I’ve been saying forever that I need to improve this. Just need to find the time.

    Thread Starter Offsprout

    (@offsprout)

    Ah, I see it, thanks!

    It’s easy enough to pull up the debugger once I know where it is, so I wouldn’t say improving it is that crucial. A 30-second screencast that just shows where to find it would be plenty for people like me. Even a simple screenshot like this may do the job.

    Thanks again!

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

The topic ‘Monitor memory usage of asynchronous REST API requests’ is closed to new replies.