Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode
4. Open Profiler
5. Enable Deep Profiling
6. Search for “UserReportingClient“
7. Wait a few seconds
8. Select a frame in Profiler
9. Observe
Expected result: “UserReportingClient.Update()”, “UserReportingClient.SampleClientMetric()“ and UserReportingSceneHelper.UpdateClientByFrame() [Coroutine: MoveNext] has GC Alloc of 0 B
Actual result: “UserReportingClient.Update()” and “UserReportingClient.SampleClientMetric()“ are present with the GC Alloc of 80-120 B
Reproducible with: 6000.0.68f1, 6000.3.11f1, 6000.4.0f1, 6000.5.0a7
Reproducible on:
Play Mode
Windows Standalone Player
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Note:
- note that UserReportingSceneHelper.UpdateClientByFrame() [Coroutine: MoveNext] is also running every frame