dhowe / Automatype

Automatype project
0 stars 2 forks source link

check memory in chrome tools #15

Open dhowe opened 7 years ago

dhowe commented 7 years ago

make sure memory is not increasing over time and/or causing garbage collection

dhowe commented 7 years ago

@cqx931 status?

cqx931 commented 7 years ago

I did this from a clear Profile without any extension:

There is an obvious increase in summary during the first few minutes after the page loaded then the increase slows down into a very slow but steady speed: Heap Snapshot summary: When the page starts: image After 5 minutes: image

Objects allocated between snapshot 1 and 2 image

Objects allocated between snapshot 4 and 5 (very similar statistic after snapshot 2 ) Increase is mainly in (compiled code), (array) and (system) image

Heap Snapshots taken Snapshot 1 Page starts Snapshot 2 After 5 minutes Snapshot 3 After 10 minutes Snapshot 4 After 20 minutes Snapshot 5 After 30 minutes

dhowe commented 7 years ago

I would like to see a graph of the memory over time... (I think this should be possible)

cqx931 commented 7 years ago

The overtime memory record doesn't render a good graph when the total time period is very long, and I can't zoom in or do anything to observe the details. image

The memory option in performance is more useful, but I can't record it over a very long time, the image below is for three minutes. image

dhowe commented 7 years ago

the heap looks ok, but what is the yellow line? what kind of 'nodes'?

cqx931 commented 7 years ago

According to the graph it should be "Listeners", and when I click on the "step point", what always shows up is AnimationFrameFired from p5.js. sometimes I also see fillText, fillRect and requestAnimationFrame

image