Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging and profiling web workers

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)

like image 678
Will Avatar asked May 01 '13 21:05

Will


1 Answers

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/

like image 145
3y3 Avatar answered Oct 21 '22 05:10

3y3