How to reproduce:
1. Open the attached “IN-139002“ project
2. Go to (File > Build Settings) and enable Development Build
3. Build and run for iOS
4. Open the Memory Profiler (Window > Analysis > Memory Profiler)
5. In the Memory Profiler, select the Target Selection dropdown (default value is "Editor") and choose the running iOS Player
6. Press Capture in the Memory Profiler
7. Note the Unrooted size under (Memory > Native > Unity Subsystems > Unrooted) in the Memory Profiler
8. In the running app, press "Trace GraphicsStateCollection"
9. Press "Trace Variants And Save GraphicsStateCollection"
10. Wait until the on-screen status shows "Trace completed"
11. Press Capture in the Memory Profiler
12. Note the Unrooted size under (Memory > Native > Unity Subsystems > Unrooted) in the Memory Profiler
13. Observe the values from steps 7 and 12
Actual result: ~193 MB increase in Unrooted (baseline before tracing: ~5 MB)
Expected result: No increase in Unrooted allocations
Reproducible with: 6000.0.23f1 (1c4764c07fb4), 6000.0.72f1, 6000.3.13f1, 6000.4.2f1, 6000.5.0b3, 6000.6.0a2
Could not test with: 2023.1.0a10, 6000.0.6f1 (Xcode errors)
Built on: macOS 26.4 (M1 Max)
Reproducible with these devices:
VLNQA00631 - iPhone 15 (MTP03QN/A), CPU: t8120, OS: 26.1
VLNQA00232 - iPhone 8 Plus (MQ8M2ET/A), CPU: Apple A11 Bionic, GPU: Apple designed, OS: 16.7.10
VLNQA00636 - iPad mini (A17 Pro) (MXN83KN/A), CPU: t8130, OS: 18.3.1
VLNQA00655 - Samsung Galaxy A15 5G (SM-A156E), CPU: MediaTek Dimensity 6100+ (MT6835), GPU: Mali-G57 MC2, OS: 15
Note: Does not reproduce in the editor