mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
Add a method to IStatsCollector for returning stats as an OSDMap.
Extend implementors of IStatsCollector to return an OSDMap of stats. Update UserStatsCollector and AssetStatsCollector to return both string and OSDMap data (as well as console format).
This commit is contained in:
@@ -67,5 +67,12 @@ namespace OpenSim.Framework.Monitoring
|
||||
{
|
||||
return (string) Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0).ToString() ;
|
||||
}
|
||||
|
||||
public virtual OSDMap OReport(string uptime, string version)
|
||||
{
|
||||
OSDMap ret = new OSDMap();
|
||||
ret.Add("TotalMemory", new OSDReal(Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0)));
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user