mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-18 22:20:07 +00:00
Update YooAsset
This commit is contained in:
@@ -296,11 +296,11 @@ namespace YooAsset
|
||||
}
|
||||
|
||||
#region 调试专属方法
|
||||
internal static void GetDebugSummy(DebugSummy summy)
|
||||
internal static void GetDebugReport(DebugReport report)
|
||||
{
|
||||
summy.ClearAll();
|
||||
summy.BundleCount = _loaders.Count;
|
||||
summy.AssetCount = _providers.Count;
|
||||
report.ClearAll();
|
||||
report.BundleCount = _loaders.Count;
|
||||
report.AssetCount = _providers.Count;
|
||||
|
||||
foreach (var provider in _providers)
|
||||
{
|
||||
@@ -309,7 +309,7 @@ namespace YooAsset
|
||||
providerInfo.RefCount = provider.RefCount;
|
||||
providerInfo.Status = (int)provider.Status;
|
||||
providerInfo.BundleInfos.Clear();
|
||||
summy.ProviderInfos.Add(providerInfo);
|
||||
report.ProviderInfos.Add(providerInfo);
|
||||
|
||||
if (provider is BundledProvider)
|
||||
{
|
||||
@@ -319,7 +319,7 @@ namespace YooAsset
|
||||
}
|
||||
|
||||
// 重新排序
|
||||
summy.ProviderInfos.Sort();
|
||||
report.ProviderInfos.Sort();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@ using System.Collections.Generic;
|
||||
namespace YooAsset
|
||||
{
|
||||
/// <summary>
|
||||
/// 资源系统调试信息汇总
|
||||
/// 资源系统调试信息
|
||||
/// </summary>
|
||||
internal class DebugSummy
|
||||
internal class DebugReport
|
||||
{
|
||||
public readonly List<DebugProviderInfo> ProviderInfos = new List<DebugProviderInfo>(1000);
|
||||
public int BundleCount { set; get; }
|
||||
@@ -278,14 +278,14 @@ namespace YooAsset
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取调试汇总信息
|
||||
/// 获取调试信息
|
||||
/// </summary>
|
||||
internal static void GetDebugSummy(DebugSummy summy)
|
||||
internal static void GetDebugReport(DebugReport report)
|
||||
{
|
||||
if (summy == null)
|
||||
YooLogger.Error($"{nameof(DebugSummy)} is null");
|
||||
if (report == null)
|
||||
YooLogger.Error($"{nameof(DebugReport)} is null");
|
||||
|
||||
AssetSystem.GetDebugSummy(summy);
|
||||
AssetSystem.GetDebugReport(report);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user