Widget memory limits - can you measure usage?

Hi folks, I’ve written a few large widgets (GitHub - mwagstaff/scriptable: Scripts for use with the iOS Scriptable app) that suffer from the classic memory usage ceiling problem whereby they won’t update reliably.

Does anyone know if it’s possible to measure widget memory usage?

And does anyone know what the limit actually is?

All the references I’ve seen from developers refer to it being 30 MB - I assume it is in the dev docs somewhere. I don’t know of any way for end users to measure how close it is in system other than test as you build.

Ah ha, thanks. I’ve had to tighten my code up quite a bit, e.g. reducing the amount of data returned from API calls.

Hoping future iOS versions give us a bit more headroom.