Debug shows how many bytes (total) a script (assembly) uses after compile and load.

afrisby
Tedd Hansen 2007-08-22 20:01:04 +00:00
parent 9566444a6a
commit caee73353d
1 changed files with 4 additions and 4 deletions

View File

@ -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);