diff options
author | Tedd Hansen | 2007-08-22 20:01:04 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-08-22 20:01:04 +0000 |
commit | caee73353d033364bfb5c9cfe6c77b14da783fd0 (patch) | |
tree | 547957bf023d8a8a8c921a20f88334b1c5148198 | |
parent | Correct OpenSim.ini and inventoryStore.db (diff) | |
download | opensim-SC-caee73353d033364bfb5c9cfe6c77b14da783fd0.zip opensim-SC-caee73353d033364bfb5c9cfe6c77b14da783fd0.tar.gz opensim-SC-caee73353d033364bfb5c9cfe6c77b14da783fd0.tar.bz2 opensim-SC-caee73353d033364bfb5c9cfe6c77b14da783fd0.tar.xz |
Debug shows how many bytes (total) a script (assembly) uses after compile and load.
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs index efd5a7f..cadae05 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | |||
@@ -170,11 +170,11 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
170 | 170 | ||
171 | //OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL.LSL_BaseClass Script = LoadAndInitAssembly(FreeAppDomain, FileName, localID); | 171 | //OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL.LSL_BaseClass Script = LoadAndInitAssembly(FreeAppDomain, FileName, localID); |
172 | 172 | ||
173 | //long before; | 173 | long before; |
174 | //before = GC.GetTotalMemory(true); | 174 | before = GC.GetTotalMemory(false); |
175 | LSL_BaseClass CompiledScript = m_scriptEngine.myAppDomainManager.LoadScript(FileName); | 175 | LSL_BaseClass CompiledScript = m_scriptEngine.myAppDomainManager.LoadScript(FileName); |
176 | //Console.WriteLine("Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(true) - before); | 176 | Console.WriteLine("Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(false) - before); |
177 | //before = GC.GetTotalMemory(true); | 177 | //before = GC.GetTotalMemory(false); |
178 | 178 | ||
179 | 179 | ||
180 | //Script = m_scriptEngine.myAppDomainManager.LoadScript(FileName); | 180 | //Script = m_scriptEngine.myAppDomainManager.LoadScript(FileName); |