Debugging and profiling web workers

I do calculations, for example. finding ways in web workers. This may take a few seconds, and I want to optimize it. Chrome seems to be about 3 times faster for my current code, but where is the time spent or why I don't understand.

Generally, how can you debug web workers?

How can you profile web workers?

(Firefox and Chrome)

+6
source share
1 answer

In Chrome, you can open the web worker’s source under Sources> Workers and get the full interface to the snag. Profiling in Firefox - I don’t know. And http://www.nczonline.net/blog/2009/08/25/web-workers-errors-and-debugging/

+4
source

Source: https://habr.com/ru/post/944077/


All Articles