diff options
author | UbitUmarov | 2019-11-20 23:16:20 +0000 |
---|---|---|
committer | UbitUmarov | 2019-11-20 23:16:20 +0000 |
commit | bd12d60e80b6f051a9e4f4470c7621e5ad098380 (patch) | |
tree | ba511769ca0ea52e114168920c5773a9872955c4 /OpenSim/Framework/Monitoring/BaseStatsCollector.cs | |
parent | fix the block of teleport to same region handle (diff) | |
download | opensim-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.cs | 26 |
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 | { } |