Is there a programmatic way to extract the data from "paint profiler" in the Devtools Performance tab from Puppeteer?

Viewed 67

I was wondering if there was a way to get the data from the "Paint Profiler" via Puppeteer? I have posted a screenshot at the bottom of this post. Ideally, I would like it to be in JSON format, but I'll take anything I can get.

enter image description here

1 Answers

LayerTree.PaintProfile is available via the Chrome DevTools Protocol (CDP), but I don't see it exposed when searching Puppeteer's API. Puppeteer's CDPSession should provide the low-level JSON access non-exposed CDP features like LayerTree.PaintProfile.

Related