我们在上一篇《前端性能优化–卡顿心跳检测》一文中介绍过基于requestAnimationFrame的卡顿的检测方案实现,这一篇文章我们将会介绍基于该心跳检测方案,要怎么实现链路追踪,来找到产生卡顿的地方。 卡顿监控实现上一篇我们提到的心跳检测,实现的功能很简单,就是卡顿和心跳事