I'm looking for some tool/app/tweak that can generate low memory warning on iPhone (jailbroken). Or, as alternative variant - tweak that simulates high memory usage.
I need it to test my app behavior on low memory warning.
On your device, you can call the private method _performMemoryWarning
#if DEBUG
[[UIApplication sharedApplication] performSelector:@selector(_performMemoryWarning)];
#endif
Another solution is to send the notification manually too:
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), (CFStringRef)@"UISimulatedMemoryWarningNotification", NULL, NULL, true);