aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Monitoring/BaseStatsCollector.cs
diff options
context:
space:
mode:
authorUbitUmarov2019-11-20 23:16:20 +0000
committerUbitUmarov2019-11-20 23:16:20 +0000
commitbd12d60e80b6f051a9e4f4470c7621e5ad098380 (patch)
treeba511769ca0ea52e114168920c5773a9872955c4 /OpenSim/Framework/Monitoring/BaseStatsCollector.cs
parentfix the block of teleport to same region handle (diff)
downloadopensim-SC-bd12d60e80b6f051a9e4f4470c7621e5ad098380.zip
opensim-SC-bd12d60e80b6f051a9e4f4470c7621e5ad098380.tar.gz
opensim-SC-bd12d60e80b6f051a9e4f4470c7621e5ad098380.tar.bz2
opensim-SC-bd12d60e80b6f051a9e4f4470c7621e5ad098380.tar.xz
cosmetics
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Monitoring/BaseStatsCollector.cs26
1 files changed, 13 insertions, 13 deletions
diff --git a/OpenSim/Framework/Monitoring/BaseStatsCollector.cs b/OpenSim/Framework/Monitoring/BaseStatsCollector.cs
index b5df94b..7119964 100644
--- a/OpenSim/Framework/Monitoring/BaseStatsCollector.cs
+++ b/OpenSim/Framework/Monitoring/BaseStatsCollector.cs
@@ -52,21 +52,21 @@ namespace OpenSim.Framework.Monitoring
52 Math.Round((MemoryWatchdog.LastHeapAllocationRate * 1000) / 1048576.0, 3), 52 Math.Round((MemoryWatchdog.LastHeapAllocationRate * 1000) / 1048576.0, 3),
53 Math.Round((MemoryWatchdog.AverageHeapAllocationRate * 1000) / 1048576.0, 3)); 53 Math.Round((MemoryWatchdog.AverageHeapAllocationRate * 1000) / 1048576.0, 3));
54 54
55 Process myprocess = Process.GetCurrentProcess();
56// if (!myprocess.HasExited)
57 try 55 try
58 { 56 {
59 myprocess.Refresh(); 57 using (Process myprocess = Process.GetCurrentProcess())
60 sb.AppendFormat( 58 {
61 "Process memory: Physical {0} MB \t Paged {1} MB \t Virtual {2} MB\n", 59 sb.AppendFormat(
62 Math.Round(myprocess.WorkingSet64 / 1024.0 / 1024.0), 60 "Process memory: Physical {0} MB \t Paged {1} MB \t Virtual {2} MB\n",
63 Math.Round(myprocess.PagedMemorySize64 / 1024.0 / 1024.0), 61 Math.Round(myprocess.WorkingSet64 / 1024.0 / 1024.0),
64 Math.Round(myprocess.VirtualMemorySize64 / 1024.0 / 1024.0)); 62 Math.Round(myprocess.PagedMemorySize64 / 1024.0 / 1024.0),
65 sb.AppendFormat( 63 Math.Round(myprocess.VirtualMemorySize64 / 1024.0 / 1024.0));
66 "Peak process memory: Physical {0} MB \t Paged {1} MB \t Virtual {2} MB\n", 64 sb.AppendFormat(
67 Math.Round(myprocess.PeakWorkingSet64 / 1024.0 / 1024.0), 65 "Peak process memory: Physical {0} MB \t Paged {1} MB \t Virtual {2} MB\n",
68 Math.Round(myprocess.PeakPagedMemorySize64 / 1024.0 / 1024.0), 66 Math.Round(myprocess.PeakWorkingSet64 / 1024.0 / 1024.0),
69 Math.Round(myprocess.PeakVirtualMemorySize64 / 1024.0 / 1024.0)); 67 Math.Round(myprocess.PeakPagedMemorySize64 / 1024.0 / 1024.0),
68 Math.Round(myprocess.PeakVirtualMemorySize64 / 1024.0 / 1024.0));
69 }
70 } 70 }
71 catch 71 catch
72 { } 72 { }