Dev tracing: include page visibility when reporting HMR (#55247)
Since browsers throttle JavaScript execution when pages (tabs) aren't visible, this can impact the accuracy of this metric.
Test Plan: Tested with page visible and not, and verified the request body reflected this.
Closes WEB-1536