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