-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory test #119
Comments
On-hold because of CT issue #129. |
#129 is closed. let's do it! |
As part of the code review in #165 I ran a memory test. There is a screenshot of the results below. The bottom line is that there may be a slow leak, but nothing egregious, and what we do see could be explainable by pooling in Scenery. Everything was done in a Chrome incognito window using a freshly built version of Explanation:
|
When I create 10 of each nucleon and then reset, the comparison memory tool doesn't show any obvious memory leaks. Yay! |
We found one problem with how we were recreating a Text, PatternStringProperty, AND a DerivedProperty each time the mass number changed. Oops. Fixed here. |
After fuzzing for 45 minutes and capturing snapshots intermittently, I don't see problems anymore. Woo! Closing. Thanks @Luisav1 for all your help. |
Arg! Found another nested listener adding: build-a-nucleus/js/common/view/NucleonNumberPanel.ts Lines 110 to 121 in 1475ded
|
|
After fuzzing for a while I saw that the maxListenerCount was 783, then when I restarted the sim with ?listenerLimit=782, it failed on startup. No further work to be done here. |
From self code review #112.
The text was updated successfully, but these errors were encountered: