Saturday, April 2, 2016

How to Simulate Memory Pressure

Matthias Gansrigler:

In iOS Simulator, you can, via a menu item, quickly simulate memory pressure for the simulated device to see if your app behaves correctly under low memory conditions (releasing caches, cleaning up resources, and so on).

Recently, I had the need for it on the Mac (where such a menu item is not available), while working on an XPC service for Yoink, to see if it terminated properly under certain conditions.

The memory_pressure tool lets you do this to test Mac apps.

Comments RSS · Twitter

Leave a Comment