Update remote debugger

Support remote mobie device debugging
This commit is contained in:
hevinci
2022-06-15 16:52:54 +08:00
parent 33387e8d26
commit 8deb239450
20 changed files with 475 additions and 157 deletions

View File

@@ -321,9 +321,10 @@ namespace YooAsset
}
#region
internal static void GetDebugReport(DebugReport report)
internal static DebugReport GetDebugReport()
{
report.ClearAll();
DebugReport report = new DebugReport();
report.FrameCount = Time.frameCount;
report.BundleCount = _loaders.Count;
report.AssetCount = _providers.Count;
@@ -334,8 +335,8 @@ namespace YooAsset
providerInfo.SpawnScene = provider.SpawnScene;
providerInfo.SpawnTime = provider.SpawnTime;
providerInfo.RefCount = provider.RefCount;
providerInfo.Status = provider.Status;
providerInfo.BundleInfos.Clear();
providerInfo.Status = (int)provider.Status;
providerInfo.BundleInfos = new List<DebugBundleInfo>();
report.ProviderInfos.Add(providerInfo);
if (provider is BundledProvider)
@@ -347,6 +348,7 @@ namespace YooAsset
// 重新排序
report.ProviderInfos.Sort();
return report;
}
#endregion
}