puppeteer如何做性能分析

毕竟也是Chrome

goto前:awaitpage.tracing.start({ path:'trace.json' });

waitxx后:awaitpage.tracing.stop();

生成的trace.json文件,用以下3种方式分析:

 

Leave a Reply

Your email address will not be published. Required fields are marked *