The English Wiktionary is repeatedly running into memory problems, causing template expansion to fail with "Lua error: not enough memory".
We have identified potential memory hogs and have optimised the underlying Lua data structures to save space. However many of these efforts are based on trial&error, it does not seem to be possible to get memory allocation information on a Module / Template level.
The wgPageParseReport/limitReport included in the HTML only contains the used/max amount:
"limitreport-memusage": {"value":52428798, "limit":52428800}
That's not very helpful. Optimising the memory usage is difficult if it can't be measured in detail.
Is there anything you can suggest to help with memory profiling?