调试和分析web worker [英] Debugging and profiling web workers
问题描述
通常,你如何调试网络工作者?
您如何配置网络工作者?
(Firefox和Chrome)
在Chrome中,您可以在Sources> Workers中打开网络工作者源,并获得prifile的完整界面。
在Firefox中进行剖析 - 不知道。
和 http:// www .nczonline.net / blog / 2009/08/25 / web-workers-errors-and-debugging /
I am running computations e.g. path-finding in web workers. This can take several seconds and I want to optimise it. Chrome seems to be about 3x faster for my current code, but where the time is spent or why I have no insight into.
Generally, how can you debug web workers?
How can you profile web workers?
(Firefox and Chrome)
In Chrome you may open web worker source in Sources > Workers and get full interface to prifile. Profiling in Firefox - no idea. And http://www.nczonline.net/blog/2009/08/25/web-workers-errors-and-debugging/
这篇关于调试和分析web worker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!