OpenSim
|
Collect statistics from the scene to send to the client and for access by other monitoring tools. More...
Public Member Functions | |
delegate void | SendStatResult (SimStats stats) |
delegate void | YourStatsAreWrong () |
SimStatsReporter (Scene scene) | |
void | Close () |
void | SetUpdateMS (int ms) |
Sets the number of milliseconds between stat updates. More... | |
void | AddFrameStats (float _timeDilation, float _physicsFPS, float _agentMS, float _physicsMS, float _otherMS, float _sleepMS, float _frameMS, float _scriptTimeMS) |
void | AddObjectUpdates (int numUpdates) |
void | AddAgentUpdates (int numUpdates) |
void | AddInPackets (int numPackets) |
void | AddOutPackets (int numPackets) |
void | AddunAckedBytes (int numBytes) |
void | addNetMS (float ms) |
void | addImageMS (float ms) |
void | AddPendingDownloads (int count) |
void | addScriptEvents (int count) |
void | AddPacketsStats (int inPackets, int outPackets, int unAckedBytes) |
void | UpdateUsersLoggingIn (bool isLoggingIn) |
void | SetThreadCount (int inUseThreads) |
Dictionary< string, float > | GetExtraSimStats () |
Public Attributes | |
const string | LastReportedObjectUpdateStatName = "LastReportedObjectUpdates" |
const string | SlowFramesStatName = "SlowFrames" |
Properties | |
float | LastReportedSimFPS [get] |
This is for llGetRegionFPS More... | |
float | LastReportedObjectUpdates [get, set] |
Number of object updates performed in the last stats cycle More... | |
float[] | LastReportedSimStats [get] |
Stat | SlowFramesStat [get, set] |
Number of frames that have taken longer to process than Scene.MIN_FRAME_TIME More... | |
int | SlowFramesStatReportThreshold [get, set] |
The threshold at which we log a slow frame. More... | |
Events | |
SendStatResult | OnSendStatsResult |
YourStatsAreWrong | OnStatsIncorrect |
Collect statistics from the scene to send to the client and for access by other monitoring tools.
FIXME: This should be a monitoring region module
Definition at line 45 of file SimStatsReporter.cs.
These are the IDs of stats sent in the StatsPacket to the viewer.
Some of these are not relevant to OpenSimulator since it is architected differently to other simulators (e.g. script instructions aren't executed as part of the frame loop so 'script time' is tricky).
Definition at line 78 of file SimStatsReporter.cs.
|
inline |
At the moment, we'll only report if a frame is over 120% of target, since commonly frames are a bit longer than ideal (which in itself is a concern).
Definition at line 259 of file SimStatsReporter.cs.
|
inline |
Definition at line 742 of file SimStatsReporter.cs.
|
inline |
Definition at line 699 of file SimStatsReporter.cs.
|
inline |
Definition at line 769 of file SimStatsReporter.cs.
|
inline |
Definition at line 747 of file SimStatsReporter.cs.
|
inline |
Definition at line 764 of file SimStatsReporter.cs.
|
inline |
Definition at line 737 of file SimStatsReporter.cs.
|
inline |
Definition at line 752 of file SimStatsReporter.cs.
|
inline |
Definition at line 789 of file SimStatsReporter.cs.
|
inline |
Definition at line 774 of file SimStatsReporter.cs.
|
inline |
Definition at line 784 of file SimStatsReporter.cs.
|
inline |
Definition at line 757 of file SimStatsReporter.cs.
|
inline |
Definition at line 305 of file SimStatsReporter.cs.
|
inline |
Definition at line 823 of file SimStatsReporter.cs.
delegate void OpenSim.Region.Framework.Scenes.SimStatsReporter.SendStatResult | ( | SimStats | stats | ) |
|
inline |
Definition at line 814 of file SimStatsReporter.cs.
|
inline |
Sets the number of milliseconds between stat updates.
ms |
Definition at line 315 of file SimStatsReporter.cs.
|
inline |
Definition at line 796 of file SimStatsReporter.cs.
delegate void OpenSim.Region.Framework.Scenes.SimStatsReporter.YourStatsAreWrong | ( | ) |
const string OpenSim.Region.Framework.Scenes.SimStatsReporter.LastReportedObjectUpdateStatName = "LastReportedObjectUpdates" |
Definition at line 50 of file SimStatsReporter.cs.
const string OpenSim.Region.Framework.Scenes.SimStatsReporter.SlowFramesStatName = "SlowFrames" |
Definition at line 51 of file SimStatsReporter.cs.
|
getset |
Number of object updates performed in the last stats cycle
This isn't sent out to the client but it is very useful data to detect whether viewers are being sent a large number of object updates.
Definition at line 151 of file SimStatsReporter.cs.
|
get |
This is for llGetRegionFPS
Definition at line 140 of file SimStatsReporter.cs.
|
get |
Definition at line 154 of file SimStatsReporter.cs.
|
getset |
Number of frames that have taken longer to process than Scene.MIN_FRAME_TIME
Definition at line 161 of file SimStatsReporter.cs.
|
getset |
The threshold at which we log a slow frame.
Definition at line 166 of file SimStatsReporter.cs.
SendStatResult OpenSim.Region.Framework.Scenes.SimStatsReporter.OnSendStatsResult |
Definition at line 57 of file SimStatsReporter.cs.
YourStatsAreWrong OpenSim.Region.Framework.Scenes.SimStatsReporter.OnStatsIncorrect |
Definition at line 59 of file SimStatsReporter.cs.