【测试】打包速度测试接口

dev_chengFeng
gaoxin 2021-05-27 13:32:44 +08:00
parent 3870a1cec6
commit 4a44d87c27
1 changed files with 20 additions and 0 deletions

View File

@ -8,6 +8,7 @@ using UnityEngine;
using UnityEditor;
using Object = UnityEngine.Object;
using GameEditor.Core;
using GameLogic;
namespace GameEditor.AssetBundle
{
@ -118,6 +119,25 @@ namespace GameEditor.AssetBundle
Debug.LogError("清理完毕...");
}
[MenuItem("AssetBundle/TestClearMark")]
public static void TestClearMark()
{
System.Diagnostics.Stopwatch time = new System.Diagnostics.Stopwatch();
time.Start();
AssetDatabase.RemoveAssetBundleName("lz4/updatepanel.unity3d", true);
time.Stop();
Debug.Log(" 耗时:" + time.ElapsedMilliseconds);
}
[MenuItem("AssetBundle/TestMark")]
public static void TestMark()
{
System.Diagnostics.Stopwatch time = new System.Diagnostics.Stopwatch();
time.Start();
AssetBundleBuilder.MarkOneFloderOneBundle("ManagedResources/UpdatePanel", CompressType.LZ4);
time.Stop();
Debug.Log(" 耗时:" + time.ElapsedMilliseconds);
}
/// <summary>
/// 开始打包
/// </summary>