public override void run() { extrator = new AssetExtrator(); typeTreeDatabase = AssetToolUtility.LoadTypeTreeDataBase(Resources.TypeTreeDataBasePath); base.run(); AssetToolUtility.SaveTypeTreeDataBase(Resources.TypeTreeDataBasePath, typeTreeDatabase); }
public override void run() { mSizeDic.Clear(); typeTreeDatabase = AssetToolUtility.LoadTypeTreeDataBase(Resources.TypeTreeDataBasePath); base.run(); AssetToolUtility.SaveTypeTreeDataBase(Resources.TypeTreeDataBasePath, typeTreeDatabase); Console.WriteLine("TotalSize:{0} kb", totalSize / 1024.0f); var sortedDic = mSizeDic.OrderByDescending(x => x.Value).ToDictionary(x => x.Key, x => x.Value); foreach (var kvp in sortedDic) { string className = AssetToolUtility.ClassIDToClassName(kvp.Key); Console.WriteLine("{0,-30} Size:{1,-15}kb {2,-15}%", className, kvp.Value / 1024.0f, (kvp.Value / (float)totalSize) * 100); } }