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