Fix issue when "Domain unloader" wasn't found (renamed to "Domain Unloader")

This commit is contained in:
Rares Sebastian Popa 2021-09-23 17:06:45 +02:00
Родитель ff44a02005
Коммит 8ece671f30
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -61,7 +61,11 @@ namespace UnityEditor.EditorIterationProfiler
AddMarkerFlags(marker, EventDataFlags.UserCode);
}
#if UNITY_2020_3_OR_NEWER
AddThreadMarker("UnloadDomain", "Domain Unloader", "Finalizer");
#else
AddThreadMarker("UnloadDomain", "Domain unloader", "Finalizer");
#endif
}
void Initialize(IIterationList iterationList)

Просмотреть файл

@ -83,7 +83,7 @@ namespace UnityEditor.EditorIterationProfiler
}
iter.Dispose();
throw new ArgumentException($"Could not find thread named '{threadName}'");
throw new ArgumentException($"Could not find thread named '{threadName}'. Depending on the Unity version, it could have been renamed.");
}
}
}