L
L
leni_m2019-01-21 14:30:37
JavaScript
leni_m, 2019-01-21 14:30:37

Why does the amount of RAM consumed increase when using canvas?

click
The problem is that while this page is open, the consumed RAM is constantly increasing, and I did not find the limit. Why is this happening and is it possible to overcome this moment?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Proskurin, 2019-01-21
@leni_m

Open chrome's devtools, go to the Memory tab, select "allocation instrumentation on timeline", and hit the Start button. The memory graph will start to show. There will be sticks, for a certain period of time. This wand is filled with two colors, gray is the total amount of memory processed, even the one that is cleaned by the garbage collector. And blue is the amount of memory that is not cleaned by the garbage collector, for the simple reason that this memory is in use.
If you stop the scan, you can highlight a specific area on the timeline and see where the stuff is stuck.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question