diff options
Diffstat (limited to 'OpenSim/Framework/Statistics/BaseStatsCollector.cs')
-rw-r--r-- | OpenSim/Framework/Statistics/BaseStatsCollector.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Framework/Statistics/BaseStatsCollector.cs b/OpenSim/Framework/Statistics/BaseStatsCollector.cs index 1e59983..a5ce8aa 100644 --- a/OpenSim/Framework/Statistics/BaseStatsCollector.cs +++ b/OpenSim/Framework/Statistics/BaseStatsCollector.cs | |||
@@ -28,6 +28,10 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Text; | 29 | using System.Text; |
30 | 30 | ||
31 | using OpenMetaverse; | ||
32 | using OpenMetaverse.StructuredData; | ||
33 | |||
34 | |||
31 | namespace OpenSim.Framework.Statistics | 35 | namespace OpenSim.Framework.Statistics |
32 | { | 36 | { |
33 | /// <summary> | 37 | /// <summary> |
@@ -47,5 +51,10 @@ namespace OpenSim.Framework.Statistics | |||
47 | 51 | ||
48 | return sb.ToString(); | 52 | return sb.ToString(); |
49 | } | 53 | } |
54 | |||
55 | public virtual string XReport() | ||
56 | { | ||
57 | return (string) Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0).ToString() ; | ||
58 | } | ||
50 | } | 59 | } |
51 | } | 60 | } |