Created
April 16, 2019 01:05
-
-
Save deleteman/1279027b26de0f596b545f340e7c2953 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const obs = new PerformanceObserver((list) => { | |
const entry = list.getEntries()[0] | |
console.log(`require('${entry[0]}')`, entry.duration); | |
}); | |
obs.observe({ entryTypes: ['function'], buffered: false}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment