From caee73353d033364bfb5c9cfe6c77b14da783fd0 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Wed, 22 Aug 2007 20:01:04 +0000 Subject: Debug shows how many bytes (total) a script (assembly) uses after compile and load. --- OpenSim/Region/ScriptEngine/DotNetEngine/ScriptManager.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') 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 //OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL.LSL_BaseClass Script = LoadAndInitAssembly(FreeAppDomain, FileName, localID); - //long before; - //before = GC.GetTotalMemory(true); + long before; + before = GC.GetTotalMemory(false); LSL_BaseClass CompiledScript = m_scriptEngine.myAppDomainManager.LoadScript(FileName); - //Console.WriteLine("Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(true) - before); - //before = GC.GetTotalMemory(true); + Console.WriteLine("Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(false) - before); + //before = GC.GetTotalMemory(false); //Script = m_scriptEngine.myAppDomainManager.LoadScript(FileName); -- cgit v1.1