Change "ObjectMemory" stat to "HeapMemory" to align with other stat names. Also round this and ProcessMemory to three decimal places in common with other memory stats.
I believe leaving out such minor info makes stats easier to readcpu-performance
parent
05790ba1cf
commit
085a87060a
|
@ -239,9 +239,9 @@ namespace OpenSim.Framework.Monitoring
|
||||||
}
|
}
|
||||||
|
|
||||||
MakeStat("ProcessMemory", null, "MB", ContainerMemory,
|
MakeStat("ProcessMemory", null, "MB", ContainerMemory,
|
||||||
(s) => { s.Value = Process.GetCurrentProcess().WorkingSet64 / 1024d / 1024d; });
|
(s) => { s.Value = Math.Round(Process.GetCurrentProcess().WorkingSet64 / 1024d / 1024d, 3); });
|
||||||
MakeStat("ObjectMemory", null, "MB", ContainerMemory,
|
MakeStat("HeapMemory", null, "MB", ContainerMemory,
|
||||||
(s) => { s.Value = GC.GetTotalMemory(false) / 1024d / 1024d; });
|
(s) => { s.Value = Math.Round(GC.GetTotalMemory(false) / 1024d / 1024d, 3); });
|
||||||
MakeStat("LastHeapAllocationRate", null, "MB/sec", ContainerMemory,
|
MakeStat("LastHeapAllocationRate", null, "MB/sec", ContainerMemory,
|
||||||
(s) => { s.Value = Math.Round(MemoryWatchdog.LastHeapAllocationRate * 1000d / 1024d / 1024d, 3); });
|
(s) => { s.Value = Math.Round(MemoryWatchdog.LastHeapAllocationRate * 1000d / 1024d / 1024d, 3); });
|
||||||
MakeStat("AverageHeapAllocationRate", null, "MB/sec", ContainerMemory,
|
MakeStat("AverageHeapAllocationRate", null, "MB/sec", ContainerMemory,
|
||||||
|
|
Loading…
Reference in New Issue