官术网_书友最值得收藏!

Summary

In order to manage application resources, one must have a deeper understanding of the application lifecycle. Application lifecycle events, outlined in this chapter, are the main access points to underlying platform runtime on both iOS and Android. If used properly, the event delegates and event methods on both platforms can help developers save valuable resources and avoid memory problems.

Other concepts discussed were garbage collection, object references, and automatic reference counting. These concepts make up the foundation of memory management on target Xamarin platforms.

We also had a closer look at the diagnostic and profiling tools for target platforms and how they can be used effectively. While iOS and Android platforms each have a native app to analyze memory allocations, Xamarin Profiler provides a unified solution for both platforms.

Finally, useful patterns were outlined for different memory related issues and pitfalls. To analyze these patterns, Xamarin Profiler and Instruments were used for Android and iOS applications respectively.

In the next chapter, we will be looking at asynchronous implementation techniques and investigate various patterns of multi-threading and background execution.

主站蜘蛛池模板: 斗六市| 永平县| 积石山| 哈尔滨市| 怀安县| 环江| 罗平县| 福鼎市| 枝江市| 基隆市| 海阳市| 富民县| 太保市| 吕梁市| 阿拉善盟| 靖宇县| 岳西县| 平潭县| 福贡县| 白玉县| 沙湾县| 遵义市| 盈江县| 万安县| 泉州市| 伊金霍洛旗| 庆云县| 巨野县| 怀安县| 通渭县| 阿巴嘎旗| 喜德县| 泌阳县| 桐乡市| 清河县| 涿州市| 汝南县| 普洱| 东安县| 峨山| 宜阳县|