diff options
author | Jeff Lee | 2009-11-23 11:53:37 -0500 |
---|---|---|
committer | Melanie | 2009-11-26 17:43:17 +0000 |
commit | 9d05962029fe864408d287d5fa7ef81f312e098a (patch) | |
tree | a1ddec3f27b316ffc574441be434907cac8d6f16 /OpenSim | |
parent | Added osGetRegionStats() function, to return a number of sim statistics (diff) | |
download | opensim-SC-9d05962029fe864408d287d5fa7ef81f312e098a.zip opensim-SC-9d05962029fe864408d287d5fa7ef81f312e098a.tar.gz opensim-SC-9d05962029fe864408d287d5fa7ef81f312e098a.tar.bz2 opensim-SC-9d05962029fe864408d287d5fa7ef81f312e098a.tar.xz |
Added osGetRegionStats() function, to return a number of sim statistics
Diffstat (limited to '')
-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; |