using System.Collections.Generic; using UnityEditor; using UnityEngine; namespace Thousandto.Profiler.Editor { /// /// 跟profiler相关的菜单都在这里 /// public class ProfilerMenuItem { [MenuItem("Profiler/统计当前profiler")] private static void Collection() { ProfilerEditorUtils.GetProfilerInformation(); } [MenuItem("Profiler/统计历史profiler")] private static void CollectionHistory() { ProfilerEditorUtils.GetHistoryInformation(); } } }