剖析匿名JavaScript函数(chrome) [英] profiling anonymous javascript functions (chrome)
本文介绍了剖析匿名JavaScript函数(chrome)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Chrome匿名高级使用函数中进行性能分析时,如果在调用树的根目录中列出时很难排除故障。有没有一种方法可以确定匿名函数在哪里首次实例化?
when performance profiling in chrome anonymous high-use functions are difficult to trouble-shoot when they are listed at the root of the call tree. is there a way to determine where an anonymous function was first instantiated?
推荐答案
可能最简单的方法是放置 console.trace()
在你的函数中。
Probably the easiest way is to put a console.trace()
in your function.
这篇关于剖析匿名JavaScript函数(chrome)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文