-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Question about where to put reactive code. #24
Comments
Are you running instruments against simulator or a real device to check memory footprint? If the answer is simulator, try again using a real device. |
Hi @DTartaglia, leaks profiler in Xcode is useless. Apple has made a small dirty marketing trick there :) If you use allocations profiler, you should see number of view controller objects in memory. Unfortunately, Apple has bug with profiling allocations on simulator, so you'll need to run profiler on real device, otherwise it won't show instances of some of your objects :( @manumax is right, you have retain cycle somewhere. We can probably discuss things like that in slack, because otherwise we'll spam whoever is watching this repository :) |
FYI. I found the retain cycle and fixed it. |
I currently have my reactive code in the viewDidLoad method, and I dispose everything in the deinit.
However, I noticed that when I exit my view controller, the deinit is never called. I confirmed that the view controller is not getting reused, and that my memory footprint goes up with every entry/exit of my view controller, but no leaks are detected...
Does anybody know what is going on?
The text was updated successfully, but these errors were encountered: