Post

Replies

Boosts

Views

Activity

Reply to how XCode to calculate Memory
memoryFootprint is quite confusing code but useful. Putting it in the debugger and studying info (at line return info.phys_footprint) I see it has a field limit_bytes_remaining Is this a useful guideline as to how much memory is available for allocation? I notice that when UIGraphicsBeginImageContextWithOptions(size,....) fails with a message "Cannot allocate X bytes" X is 16 x size.width x size.height I would like to know if UIGraphicsBeginImageContextWithOptions will fail before I call it and crash
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’21
Reply to how XCode to calculate Memory
memoryFootprint is quite confusing code but useful. Putting it in the debugger and studying info (at line return info.phys_footprint) I see it has a field limit_bytes_remaining Is this a useful guideline as to how much memory is available for allocation? I notice that when UIGraphicsBeginImageContextWithOptions(size,....) fails with a message "Cannot allocate X bytes" X is 16 x size.width x size.height I would like to know if UIGraphicsBeginImageContextWithOptions will fail before I call it and crash
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’21