You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chrome DevTools is an indispensable tool for analyzing your Web application. headless-devtools lets you automate the process of using DevTools.
This is useful for gathering data over time, writing tests, etc.
Usage
headless-devtools is designed to be used together with Puppeteer.
See examples below
API
getPerformanceModel - Extracts the data model used the render a trace file in the DevTools Performance Tab
getHeapSnapshot - Extracts the data model used to render a Heap Snapshot in the Memory tab
Suggest more features by opening up an issue!
getPerformanceModel
Extracts the data model used the render a trace file in the DevTools Performance Tab.
It's useful for calculating your animation's frame-rate programmatically.
DevTools frontend is also available on NPM as the chrome-devtools-frontend package. It's not currently available via CJS or ES2015 modules, so consuming this package in other tools may require some effort.
headless-devtools does a bunch of monkey patching in order to make the DevTools frontend code run smoothly in Node.js.
Changelog
2.0.0
Add getPerformanceModel.
Remove calcUnusedCss. CSS & JS Coverage info is now available in Puppeteer (more info).