How to get Page Rendering & Painting time of Chrome Devtools via Devtools Protocol?

51 Views Asked by At

Summary

Chrome Devtools offers these times in Summary Section of Performance tab. I want to get these values programmatically via CDP or any other tool.

There is a Performance.getMetric API in CDP but it does not directly provide these numbers. There are some JS based solutions available like listening to onLoad event to get page rendering time but I wanted to first check if these values can be fetched from CDP or calculated via metrics it already provides in its Performance API.

0

There are 0 best solutions below