Search Issue Tracker
Duplicate
Votes
0
Found in
5.3.5p8
Issue ID
825081
Regression
No
Coroutine functions are sometimes labelled incorrectly in the Profiler
Steps to reproduce:
1. Download and open attached project CoroutineProfileTest.zip
2. Open scene CoroutineProfileTest_scene
3. Observer profiler
4. Wait for noticeable spike in CPU usage graph
5. Pause and observe said spike
Actual result: https://gyazo.com/79aa0a5d93f30621bde3f758d73ff6db
Expected: https://gyazo.com/4e335a3d463734ece2cbb08e7287d810
Note: This seems to happen randomly, no consistent spikes or result.
Tested and reproduced on:
Windows 10
Unity 5.3.6p3, 5.4.0p2, 5.5.0a6
-
MichaelManley
Apr 04, 2017 12:32
This issue is NOT duplicate. While trying to identify spikes in gameplay, a coroutine was showing very heavy call's and cpu usage. The name of the coroutine from the hierarchy had nothing to do with the coroutine that was ACTUALLY causing the spikes. It seems that Unity's profiler was picking random coroutine method names instead of accurately posting the specific coroutine that was causing the problem.
If we removed the coroutine that was showing up as the culprit of cpu usage, the profiler would just show some other arbitrary and completely unrelated coroutine.
This was discovered for us with Unity 5.5.1f1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
This is a duplicate of issue #776595