From 6aa5d3904d71c4be21e5991d9ba82dff3c1cf51f Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 22 Apr 2009 00:48:56 +0000 Subject: Add copyright headers. Formatting cleanup. --- .../Framework/Statistics/SimExtraStatsCollector.cs | 71 +++++++++++----------- 1 file changed, 35 insertions(+), 36 deletions(-) (limited to 'OpenSim/Framework/Statistics/SimExtraStatsCollector.cs') diff --git a/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs b/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs index 8b8b52a..d3513fc 100644 --- a/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs +++ b/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs @@ -383,45 +383,44 @@ Asset service request failures: {3}" + Environment.NewLine, return sb.ToString(); } - - + /// /// Report back collected statistical information. /// /// public override string XReport() { - OSDMap args = new OSDMap(28); - args["AssetsInCache"] = OSD.FromReal(AssetsInCache); - args["TimeAfterCacheMiss"] = OSD.FromReal(assetRequestTimeAfterCacheMiss.Milliseconds / 1000.0); - args["BlockedMissingTextureRequests"] = OSD.FromReal(BlockedMissingTextureRequests); - args["AssetServiceRequestFailures"] = OSD.FromReal(AssetServiceRequestFailures); + OSDMap args = new OSDMap(28); + args["AssetsInCache"] = OSD.FromReal(AssetsInCache); + args["TimeAfterCacheMiss"] = OSD.FromReal(assetRequestTimeAfterCacheMiss.Milliseconds / 1000.0); + args["BlockedMissingTextureRequests"] = OSD.FromReal(BlockedMissingTextureRequests); + args["AssetServiceRequestFailures"] = OSD.FromReal(AssetServiceRequestFailures); args["abnormalClientThreadTerminations"] = OSD.FromReal(abnormalClientThreadTerminations); - args["InventoryServiceRetrievalFailures"] = OSD.FromReal(InventoryServiceRetrievalFailures); - args["Dilatn"] = OSD.FromReal(timeDilation); - args["SimFPS"] = OSD.FromReal(simFps); - args["PhyFPS"] = OSD.FromReal(physicsFps); - args["AgntUp"] = OSD.FromReal(agentUpdates); - args["RootAg"] = OSD.FromReal(rootAgents); - args["ChldAg"] = OSD.FromReal(childAgents); - args["Prims"] = OSD.FromReal(totalPrims); - args["AtvPrm"] = OSD.FromReal(activePrims); - args["AtvScr"] = OSD.FromReal(activeScripts); - args["ScrLPS"] = OSD.FromReal(scriptLinesPerSecond); - args["PktsIn"] = OSD.FromReal(inPacketsPerSecond); - args["PktOut"] = OSD.FromReal(outPacketsPerSecond); - args["PendDl"] = OSD.FromReal(pendingDownloads); - args["PendUl"] = OSD.FromReal(pendingUploads); - args["UnackB"] = OSD.FromReal(unackedBytes); - args["TotlFt"] = OSD.FromReal(totalFrameTime); - args["NetFt"] = OSD.FromReal(netFrameTime); - args["PhysFt"] = OSD.FromReal(physicsFrameTime); - args["OthrFt"] = OSD.FromReal(otherFrameTime); + args["InventoryServiceRetrievalFailures"] = OSD.FromReal(InventoryServiceRetrievalFailures); + args["Dilatn"] = OSD.FromReal(timeDilation); + args["SimFPS"] = OSD.FromReal(simFps); + args["PhyFPS"] = OSD.FromReal(physicsFps); + args["AgntUp"] = OSD.FromReal(agentUpdates); + args["RootAg"] = OSD.FromReal(rootAgents); + args["ChldAg"] = OSD.FromReal(childAgents); + args["Prims"] = OSD.FromReal(totalPrims); + args["AtvPrm"] = OSD.FromReal(activePrims); + args["AtvScr"] = OSD.FromReal(activeScripts); + args["ScrLPS"] = OSD.FromReal(scriptLinesPerSecond); + args["PktsIn"] = OSD.FromReal(inPacketsPerSecond); + args["PktOut"] = OSD.FromReal(outPacketsPerSecond); + args["PendDl"] = OSD.FromReal(pendingDownloads); + args["PendUl"] = OSD.FromReal(pendingUploads); + args["UnackB"] = OSD.FromReal(unackedBytes); + args["TotlFt"] = OSD.FromReal(totalFrameTime); + args["NetFt"] = OSD.FromReal(netFrameTime); + args["PhysFt"] = OSD.FromReal(physicsFrameTime); + args["OthrFt"] = OSD.FromReal(otherFrameTime); args["AgntFt"] = OSD.FromReal(agentFrameTime); - args["ImgsFt"] = OSD.FromReal(imageFrameTime); - args["Memory"] = OSD.FromString(base.XReport()); - - string strBuffer = ""; + args["ImgsFt"] = OSD.FromReal(imageFrameTime); + args["Memory"] = OSD.FromString(base.XReport()); + + string strBuffer = ""; byte[] buffer = new byte[1]; strBuffer = OSDParser.SerializeJsonString(args); @@ -452,10 +451,10 @@ Asset service request failures: {3}" + Environment.NewLine, { return m_statsProvider.GetStats(); } - - public string XReport() - { - return ""; - } + + public string XReport() + { + return ""; + } } } -- cgit v1.1