aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Statistics
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Statistics')
-rw-r--r--OpenSim/Framework/Statistics/BaseStatsCollector.cs2
-rw-r--r--OpenSim/Framework/Statistics/Interfaces/IStatsCollector.cs2
-rw-r--r--OpenSim/Framework/Statistics/SimExtraStatsCollector.cs16
3 files changed, 9 insertions, 11 deletions
diff --git a/OpenSim/Framework/Statistics/BaseStatsCollector.cs b/OpenSim/Framework/Statistics/BaseStatsCollector.cs
index ca0907d..38e2dd5 100644
--- a/OpenSim/Framework/Statistics/BaseStatsCollector.cs
+++ b/OpenSim/Framework/Statistics/BaseStatsCollector.cs
@@ -52,7 +52,7 @@ namespace OpenSim.Framework.Statistics
52 return sb.ToString(); 52 return sb.ToString();
53 } 53 }
54 54
55 public virtual string XReport() 55 public virtual string XReport(string uptime, string version)
56 { 56 {
57 return (string) Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0).ToString() ; 57 return (string) Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0).ToString() ;
58 } 58 }
diff --git a/OpenSim/Framework/Statistics/Interfaces/IStatsCollector.cs b/OpenSim/Framework/Statistics/Interfaces/IStatsCollector.cs
index ac8133d..c1a8f73 100644
--- a/OpenSim/Framework/Statistics/Interfaces/IStatsCollector.cs
+++ b/OpenSim/Framework/Statistics/Interfaces/IStatsCollector.cs
@@ -44,6 +44,6 @@ namespace OpenSim.Framework.Statistics
44 /// <returns> 44 /// <returns>
45 /// A <see cref="System.String"/> 45 /// A <see cref="System.String"/>
46 /// </returns> 46 /// </returns>
47 string XReport(); 47 string XReport(string uptime, string version);
48 } 48 }
49} 49}
diff --git a/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs b/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs
index bab2764..75cc23c 100644
--- a/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs
+++ b/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs
@@ -384,12 +384,12 @@ Asset service request failures: {3}" + Environment.NewLine,
384 } 384 }
385 385
386 /// <summary> 386 /// <summary>
387 /// Report back collected statistical information. 387 /// Report back collected statistical information as json serialization.
388 /// </summary> 388 /// </summary>
389 /// <returns></returns> 389 /// <returns></returns>
390 public override string XReport() 390 public override string XReport(string uptime, string version)
391 { 391 {
392 OSDMap args = new OSDMap(28); 392 OSDMap args = new OSDMap(30);
393 args["AssetsInCache"] = OSD.FromReal(AssetsInCache); 393 args["AssetsInCache"] = OSD.FromReal(AssetsInCache);
394 args["TimeAfterCacheMiss"] = OSD.FromReal(assetRequestTimeAfterCacheMiss.Milliseconds / 1000.0); 394 args["TimeAfterCacheMiss"] = OSD.FromReal(assetRequestTimeAfterCacheMiss.Milliseconds / 1000.0);
395 args["BlockedMissingTextureRequests"] = OSD.FromReal(BlockedMissingTextureRequests); 395 args["BlockedMissingTextureRequests"] = OSD.FromReal(BlockedMissingTextureRequests);
@@ -417,14 +417,12 @@ Asset service request failures: {3}" + Environment.NewLine,
417 args["OthrFt"] = OSD.FromReal(otherFrameTime); 417 args["OthrFt"] = OSD.FromReal(otherFrameTime);
418 args["AgntFt"] = OSD.FromReal(agentFrameTime); 418 args["AgntFt"] = OSD.FromReal(agentFrameTime);
419 args["ImgsFt"] = OSD.FromReal(imageFrameTime); 419 args["ImgsFt"] = OSD.FromReal(imageFrameTime);
420 args["Memory"] = OSD.FromString(base.XReport()); 420 args["Memory"] = OSD.FromString(base.XReport(uptime, version));
421 args["Uptime"] = OSD.FromString(uptime);
422 args["Version"] = OSD.FromString(version);
421 423
422 string strBuffer = ""; 424 string strBuffer = "";
423 // byte[] buffer = new byte[1];
424
425 strBuffer = OSDParser.SerializeJsonString(args); 425 strBuffer = OSDParser.SerializeJsonString(args);
426 // UTF8Encoding str = new UTF8Encoding();
427 // buffer = str.GetBytes(strBuffer);
428 426
429 return strBuffer; 427 return strBuffer;
430 } 428 }
@@ -451,7 +449,7 @@ Asset service request failures: {3}" + Environment.NewLine,
451 return m_statsProvider.GetStats(); 449 return m_statsProvider.GetStats();
452 } 450 }
453 451
454 public string XReport() 452 public string XReport(string uptime, string version)
455 { 453 {
456 return ""; 454 return "";
457 } 455 }