In this video we look at how Xamarin iOS handles garbage collection and interacts with the underlying native objects.
- [Instructor] To effectively use…the Xamarin profiler to catch memory leaks,…it's important to understand how Xamarin handles memory.…While Mono provides a cross-platform implementation…of .NET, how it deals with objects…and the underlying native API's is different per platform.…As a result, how Xamarin app releases memory…can be different per platform as well.…Mono uses a generational garbage collector called SGen.…As a developer working with SGen,…we will see many of the same collection techniques…that we may be familiar with from .NET.…
However, under the hood, there are some objects…that are native iOS objects,…the same ones we would use if we were writing…an Objective-C or Swift application.…iOS does not use garbage collection like .NET does.…Instead, it uses reference counting.…Any time an object gets a reference to another,…the reference count is increased by one.…Whenever a reference is removed from one of these objects,…the reference count is decremented by one.…If a reference count of an object ever reaches zero,…
- Working with tuples
- Using C# throw expressions
- Inspecting UI structures with Xamarin Inspector
- Identifying memory leaks in iOS and Android
- Recording and playing back tests with Test Record
- Using embedded assemblies in Android
Skill Level Intermediate
Learning Visual Studio Team Serviceswith Jose Miguel Rady Allende1h 17m Intermediate
1. C# 7 Language Improvements
Inspecting UI structures3m 34s
4. Test Recorder
5. Embedded Assemblies
Where to go from here1m 54s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.