diff options
Diffstat (limited to 'OpenSim/Framework/Monitoring/ServerStatsCollector.cs')
-rw-r--r-- | OpenSim/Framework/Monitoring/ServerStatsCollector.cs | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/OpenSim/Framework/Monitoring/ServerStatsCollector.cs b/OpenSim/Framework/Monitoring/ServerStatsCollector.cs index ac0f0bc..e6c73d3 100644 --- a/OpenSim/Framework/Monitoring/ServerStatsCollector.cs +++ b/OpenSim/Framework/Monitoring/ServerStatsCollector.cs | |||
@@ -246,6 +246,49 @@ namespace OpenSim.Framework.Monitoring | |||
246 | (s) => { s.Value = Math.Round(MemoryWatchdog.LastHeapAllocationRate * 1000d / 1024d / 1024d, 3); }); | 246 | (s) => { s.Value = Math.Round(MemoryWatchdog.LastHeapAllocationRate * 1000d / 1024d / 1024d, 3); }); |
247 | MakeStat("AverageHeapAllocationRate", null, "MB/sec", ContainerMemory, | 247 | MakeStat("AverageHeapAllocationRate", null, "MB/sec", ContainerMemory, |
248 | (s) => { s.Value = Math.Round(MemoryWatchdog.AverageHeapAllocationRate * 1000d / 1024d / 1024d, 3); }); | 248 | (s) => { s.Value = Math.Round(MemoryWatchdog.AverageHeapAllocationRate * 1000d / 1024d / 1024d, 3); }); |
249 | |||
250 | MakeStat("ProcessResident", null, "MB", ContainerProcess, | ||
251 | (s) => | ||
252 | { | ||
253 | Process myprocess = Process.GetCurrentProcess(); | ||
254 | myprocess.Refresh(); | ||
255 | s.Value = Math.Round(Process.GetCurrentProcess().WorkingSet64 / 1024.0 / 1024.0); | ||
256 | }); | ||
257 | MakeStat("ProcessPaged", null, "MB", ContainerProcess, | ||
258 | (s) => | ||
259 | { | ||
260 | Process myprocess = Process.GetCurrentProcess(); | ||
261 | myprocess.Refresh(); | ||
262 | s.Value = Math.Round(Process.GetCurrentProcess().PagedMemorySize64 / 1024.0 / 1024.0); | ||
263 | }); | ||
264 | MakeStat("ProcessVirtual", null, "MB", ContainerProcess, | ||
265 | (s) => | ||
266 | { | ||
267 | Process myprocess = Process.GetCurrentProcess(); | ||
268 | myprocess.Refresh(); | ||
269 | s.Value = Math.Round(Process.GetCurrentProcess().VirtualMemorySize64 / 1024.0 / 1024.0); | ||
270 | }); | ||
271 | MakeStat("PeakProcessResident", null, "MB", ContainerProcess, | ||
272 | (s) => | ||
273 | { | ||
274 | Process myprocess = Process.GetCurrentProcess(); | ||
275 | myprocess.Refresh(); | ||
276 | s.Value = Math.Round(Process.GetCurrentProcess().PeakWorkingSet64 / 1024.0 / 1024.0); | ||
277 | }); | ||
278 | MakeStat("PeakProcessPaged", null, "MB", ContainerProcess, | ||
279 | (s) => | ||
280 | { | ||
281 | Process myprocess = Process.GetCurrentProcess(); | ||
282 | myprocess.Refresh(); | ||
283 | s.Value = Math.Round(Process.GetCurrentProcess().PeakPagedMemorySize64 / 1024.0 / 1024.0); | ||
284 | }); | ||
285 | MakeStat("PeakProcessVirtual", null, "MB", ContainerProcess, | ||
286 | (s) => | ||
287 | { | ||
288 | Process myprocess = Process.GetCurrentProcess(); | ||
289 | myprocess.Refresh(); | ||
290 | s.Value = Math.Round(Process.GetCurrentProcess().PeakVirtualMemorySize64 / 1024.0 / 1024.0); | ||
291 | }); | ||
249 | } | 292 | } |
250 | 293 | ||
251 | // Notes on performance counters: | 294 | // Notes on performance counters: |