Esempio n. 1
0
        internal static void GetDebugReport(DebugReport report)
        {
            report.ClearAll();
            report.BundleCount = _loaders.Count;
            report.AssetCount  = _providers.Count;

            foreach (var provider in _providers)
            {
                DebugProviderInfo providerInfo = new DebugProviderInfo();
                providerInfo.AssetPath  = provider.MainAssetInfo.AssetPath;
                providerInfo.SpawnScene = provider.SpawnScene;
                providerInfo.SpawnTime  = provider.SpawnTime;
                providerInfo.RefCount   = provider.RefCount;
                providerInfo.Status     = provider.Status;
                providerInfo.BundleInfos.Clear();
                report.ProviderInfos.Add(providerInfo);

                if (provider is BundledProvider)
                {
                    BundledProvider temp = provider as BundledProvider;
                    temp.GetBundleDebugInfos(providerInfo.BundleInfos);
                }
            }

            // 重新排序
            report.ProviderInfos.Sort();
        }
Esempio n. 2
0
        /// <summary>
        /// 获取调试信息
        /// </summary>
        internal static void GetDebugReport(DebugReport report)
        {
            if (report == null)
            {
                YooLogger.Error($"{nameof(DebugReport)} is null");
            }

            AssetSystem.GetDebugReport(report);
        }