How to reproduce:
1. Open the attached Project "testProject.zip"
2. Build and Run a Development Build with the Scene "SampleScene"
3. In the Editor's Menu Bar open Window->Analysis->Memory Profiler
4. Connect the Memory Profiler to the running Build and Capture a Snapshot
5. In the Build, press the "test" Button and wait for "test3" to appear in the Console
6. Capture another Snapshot of the Build
7. Compare the Snapshots
Expected result: both Snapshots show similar/same amount of memory used
Actual result: the later Snapshot shows significantly higher memory usage
Reproducible with: 2021.3.38f1, 2022.3.29f1, 6000.0.2f1
Reproduced on:
- MacBook Pro (2021, M1, MacOS 14.4.1)
- iPhone 7 Plus (iOS 14.6)