diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 482bfbc..5501679 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -1949,9 +1949,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1949 | return key.ToString(); | 1949 | return key.ToString(); |
1950 | } | 1950 | } |
1951 | 1951 | ||
1952 | /// <summary> | ||
1953 | /// Return information regarding various simulator statistics (sim fps, physics fps, time | ||
1954 | /// dilation, total number of prims, total number of active scripts, script lps, various | ||
1955 | /// timing data, packets in/out, etc. Basically much the information that's shown in the | ||
1956 | /// client's Statistics Bar (Ctrl-Shift-1) | ||
1957 | /// </summary> | ||
1958 | /// <returns>List of floats</returns> | ||
1952 | public LSL_List osGetRegionStats() | 1959 | public LSL_List osGetRegionStats() |
1953 | { | 1960 | { |
1954 | CheckThreatLevel(ThreatLevel.High, "osGetRegionStats"); | 1961 | CheckThreatLevel(ThreatLevel.Moderate, "osGetRegionStats"); |
1955 | m_host.AddScriptLPS(1); | 1962 | m_host.AddScriptLPS(1); |
1956 | LSL_List ret = new LSL_List(); | 1963 | LSL_List ret = new LSL_List(); |
1957 | float[] stats = World.SimulatorStats; | 1964 | float[] stats = World.SimulatorStats; |