Files
Main/Assets/Editor/DIY/Profiler/ProfilerMenuItem.cs
2025-01-25 04:38:09 +08:00

25 lines
596 B
C#

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