Like the comment and hope it gets better and better with your help
Author: @ios growth refers to north, this article was first published in the public number iOS growth refers to north, welcome to the correction
Please contact me if there is a need to reprint, remember to contact oh!!
This is the fourth day of my participation in Gwen Challenge
In the previous article about iOS memory allocation, the author made a mistake in expressing, here to correct the article.
Studying the iOS memory allocation process is not boring. It can help you understand how Apple designs classes and improve your engineering skills.
error
In my article, Let’s Debug the iOS Memory Graph, I explained how to analyze Memory using the.memgraph file generated during application execution.
Thirdly, we continue to make use of the examples in the article to carry out corresponding analysis
I don’t know what went wrong before, would you say
The author in theLet’s debug the iOS Memory-Memory Graph”By analyzing the application.memgraph
The file proves that there are three types of memory in memory:tiny
,small
,large
So if there isnano
Type, why is this type in.memgraph
Not in the documents?
Why is it.memgraph
The document doesn’tnano
Part of the
- Exists in memory
MALLOC_LARGE
,MALLOC_SMALL
,MALLOC_TINY
和MALLOC_NANO
, which is the memory view of iOS.memgraph
The file describes the four memory types of iOS memory. - Check the table below
MALLOC_ZONE
In part, we see itDefaultMallocZone
As well asMallocHelperZone
In the previous analysis, we know that this call was made_malloc_zone_calloc
Function, is generated for the first timeDEFAULT_MALLOC_ZONE
和MALLOC_HELPER_ZONE
.memgraph
The file is generated after an application with UIKit animations and embedded web pages has been running for a certain amount of time, so the summary information inQuartzCore
和Webkit_Malloc
Is the APP about drawing part and web page memory allocation.
As we get deeper into memory, we get closer to its kernel. Here recommended reading Tencent technology to master Linux memory management, I hope you can help.
If you have any questions, please comment directly, and feel free to express anything wrong with the article. If you wish, you can spread the word by sharing this article.
Thank you for reading this! 🚀