mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update ProfilerDefineSymbols.cs
This commit is contained in:
@@ -8,19 +8,19 @@ namespace TEngine.Editor
|
||||
public class ProfilerDefineSymbols
|
||||
{
|
||||
private const string EnableFirstProfiler = "FIRST_PROFILER";
|
||||
private const string EnableDinProFiler = "T_PROFILER";
|
||||
private const string EnableTProFiler = "T_PROFILER";
|
||||
|
||||
private static readonly string[] AllProfilerDefineSymbols = new string[]
|
||||
{
|
||||
EnableFirstProfiler,
|
||||
EnableDinProFiler,
|
||||
EnableTProFiler,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// 禁用所有日志脚本宏定义。
|
||||
/// </summary>
|
||||
[MenuItem("TEngine/Profiler Define Symbols/Disable All Profiler", false, 30)]
|
||||
public static void DisableAllLogs()
|
||||
public static void DisableAllProfiler()
|
||||
{
|
||||
foreach (string aboveLogScriptingDefineSymbol in AllProfilerDefineSymbols)
|
||||
{
|
||||
@@ -32,9 +32,9 @@ namespace TEngine.Editor
|
||||
/// 开启所有日志脚本宏定义。
|
||||
/// </summary>
|
||||
[MenuItem("TEngine/Profiler Define Symbols/Enable All Profiler", false, 31)]
|
||||
public static void EnableAllLogs()
|
||||
public static void EnableAllProfiler()
|
||||
{
|
||||
DisableAllLogs();
|
||||
DisableAllProfiler();
|
||||
foreach (string aboveLogScriptingDefineSymbol in AllProfilerDefineSymbols)
|
||||
{
|
||||
ScriptingDefineSymbols.AddScriptingDefineSymbol(aboveLogScriptingDefineSymbol);
|
||||
|
Reference in New Issue
Block a user