Skip to content

Commit 423a42c

Browse files
author
ElPsyCongree
committed
不写入表
1 parent c762399 commit 423a42c

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

LuaProfiler/LuaProfilerClient/Core/LuaHookSetup.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ public static void OnStartGame()
7676
go.AddComponent<HookLuaSetup>();
7777
NetWorkClient.ConnectServer(setting.ip, setting.port);
7878
}
79-
if (setting.isDeepMonoProfiler)
80-
{
81-
GCSettings.LatencyMode = GCLatencyMode.LowLatency;
82-
}
8379
}
8480

8581
private void Awake()
@@ -129,7 +125,7 @@ private void OnApplicationQuit()
129125
NetWorkClient.Close();
130126
#endif
131127
}
132-
128+
#if UNITY_EDITOR
133129
int desotryCount = 0;
134130
private void WaitDestory()
135131
{
@@ -141,7 +137,7 @@ private void WaitDestory()
141137
desotryCount = 0;
142138
}
143139
}
144-
140+
#endif
145141
}
146142

147143
public class Menu : MonoBehaviour

LuaProfiler/LuaProfilerClient/Editor/StartUp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public static void InjectAllMethods()
161161
var projectPath = System.Reflection.Assembly.Load("Assembly-CSharp").ManifestModule.FullyQualifiedName;
162162
var profilerPath = (typeof(LuaProfiler).Assembly).ManifestModule.FullyQualifiedName;
163163

164-
InjectAllMethods(projectPath, profilerPath, true);
164+
InjectAllMethods(projectPath, profilerPath, false);
165165
}
166166

167167
private static void InjectAllMethods(string injectPath, string profilerPath, bool needMdb)

0 commit comments

Comments
 (0)