Debug shows how many bytes (total) a script (assembly) uses after compile and load.
parent
9566444a6a
commit
caee73353d
|
@ -170,11 +170,11 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||||
|
|
||||||
//OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL.LSL_BaseClass Script = LoadAndInitAssembly(FreeAppDomain, FileName, localID);
|
//OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL.LSL_BaseClass Script = LoadAndInitAssembly(FreeAppDomain, FileName, localID);
|
||||||
|
|
||||||
//long before;
|
long before;
|
||||||
//before = GC.GetTotalMemory(true);
|
before = GC.GetTotalMemory(false);
|
||||||
LSL_BaseClass CompiledScript = m_scriptEngine.myAppDomainManager.LoadScript(FileName);
|
LSL_BaseClass CompiledScript = m_scriptEngine.myAppDomainManager.LoadScript(FileName);
|
||||||
//Console.WriteLine("Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(true) - before);
|
Console.WriteLine("Script " + itemID + " occupies {0} bytes", GC.GetTotalMemory(false) - before);
|
||||||
//before = GC.GetTotalMemory(true);
|
//before = GC.GetTotalMemory(false);
|
||||||
|
|
||||||
|
|
||||||
//Script = m_scriptEngine.myAppDomainManager.LoadScript(FileName);
|
//Script = m_scriptEngine.myAppDomainManager.LoadScript(FileName);
|
||||||
|
|
Loading…
Reference in New Issue