diff options
Merge branch 'avination-current' of ssh://3dhosting.de/var/git/careminster into avination-current
Conflicts:
bin/Regions/Regions.ini.example
Diffstat (limited to 'OpenSim/Framework/Monitoring/SimExtraStatsCollector.cs')
-rw-r--r-- | OpenSim/Framework/Monitoring/SimExtraStatsCollector.cs | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/OpenSim/Framework/Monitoring/SimExtraStatsCollector.cs b/OpenSim/Framework/Monitoring/SimExtraStatsCollector.cs index aa86202..6a68322 100644 --- a/OpenSim/Framework/Monitoring/SimExtraStatsCollector.cs +++ b/OpenSim/Framework/Monitoring/SimExtraStatsCollector.cs | |||
@@ -359,11 +359,12 @@ Asset service request failures: {3}" + Environment.NewLine, | |||
359 | inPacketsPerSecond, outPacketsPerSecond, pendingDownloads, pendingUploads, unackedBytes, totalFrameTime, | 359 | inPacketsPerSecond, outPacketsPerSecond, pendingDownloads, pendingUploads, unackedBytes, totalFrameTime, |
360 | netFrameTime, physicsFrameTime, otherFrameTime, agentFrameTime, imageFrameTime)); | 360 | netFrameTime, physicsFrameTime, otherFrameTime, agentFrameTime, imageFrameTime)); |
361 | 361 | ||
362 | Dictionary<string, Dictionary<string, Stat>> sceneStats; | 362 | /* 20130319 RA: For the moment, disable the dump of 'scene' catagory as they are mostly output by |
363 | 363 | * the two formatted printouts above. | |
364 | SortedDictionary<string, SortedDictionary<string, Stat>> sceneStats; | ||
364 | if (StatsManager.TryGetStats("scene", out sceneStats)) | 365 | if (StatsManager.TryGetStats("scene", out sceneStats)) |
365 | { | 366 | { |
366 | foreach (KeyValuePair<string, Dictionary<string, Stat>> kvp in sceneStats) | 367 | foreach (KeyValuePair<string, SortedDictionary<string, Stat>> kvp in sceneStats) |
367 | { | 368 | { |
368 | foreach (Stat stat in kvp.Value.Values) | 369 | foreach (Stat stat in kvp.Value.Values) |
369 | { | 370 | { |
@@ -374,6 +375,7 @@ Asset service request failures: {3}" + Environment.NewLine, | |||
374 | } | 375 | } |
375 | } | 376 | } |
376 | } | 377 | } |
378 | */ | ||
377 | 379 | ||
378 | /* | 380 | /* |
379 | sb.Append(Environment.NewLine); | 381 | sb.Append(Environment.NewLine); |
@@ -405,6 +407,15 @@ Asset service request failures: {3}" + Environment.NewLine, | |||
405 | /// <returns></returns> | 407 | /// <returns></returns> |
406 | public override string XReport(string uptime, string version) | 408 | public override string XReport(string uptime, string version) |
407 | { | 409 | { |
410 | return OSDParser.SerializeJsonString(OReport(uptime, version)); | ||
411 | } | ||
412 | |||
413 | /// <summary> | ||
414 | /// Report back collected statistical information as an OSDMap | ||
415 | /// </summary> | ||
416 | /// <returns></returns> | ||
417 | public override OSDMap OReport(string uptime, string version) | ||
418 | { | ||
408 | OSDMap args = new OSDMap(30); | 419 | OSDMap args = new OSDMap(30); |
409 | // args["AssetsInCache"] = OSD.FromString (String.Format ("{0:0.##}", AssetsInCache)); | 420 | // args["AssetsInCache"] = OSD.FromString (String.Format ("{0:0.##}", AssetsInCache)); |
410 | // args["TimeAfterCacheMiss"] = OSD.FromString (String.Format ("{0:0.##}", | 421 | // args["TimeAfterCacheMiss"] = OSD.FromString (String.Format ("{0:0.##}", |
@@ -442,13 +453,11 @@ Asset service request failures: {3}" + Environment.NewLine, | |||
442 | args["Uptime"] = OSD.FromString (uptime); | 453 | args["Uptime"] = OSD.FromString (uptime); |
443 | args["Version"] = OSD.FromString (version); | 454 | args["Version"] = OSD.FromString (version); |
444 | 455 | ||
445 | string strBuffer = ""; | 456 | return args; |
446 | strBuffer = OSDParser.SerializeJsonString(args); | ||
447 | |||
448 | return strBuffer; | ||
449 | } | 457 | } |
450 | } | 458 | } |
451 | 459 | ||
460 | |||
452 | /// <summary> | 461 | /// <summary> |
453 | /// Pull packet queue stats from packet queues and report | 462 | /// Pull packet queue stats from packet queues and report |
454 | /// </summary> | 463 | /// </summary> |
@@ -474,5 +483,11 @@ Asset service request failures: {3}" + Environment.NewLine, | |||
474 | { | 483 | { |
475 | return ""; | 484 | return ""; |
476 | } | 485 | } |
486 | |||
487 | public OSDMap OReport(string uptime, string version) | ||
488 | { | ||
489 | OSDMap ret = new OSDMap(); | ||
490 | return ret; | ||
491 | } | ||
477 | } | 492 | } |
478 | } | 493 | } |