Documentation
IPS_GetSettingsStats
array IPS_GetSettingsStats ()
Returns
An array with the following key => value pairs:
| Index | Type | Description |
|---|---|---|
| Count | integer | Number of objects in the settings |
| TotalBytes | integer | Estimated memory usage of the settings in bytes |
Description
This function is intended for internal use only and may change or be removed at any time without notice.
The function returns the size of the settings (settings.json) IP-Symcon holds in memory. Count is the number of objects of the object tree in the settings.
The bytes are an estimate of the occupied memory based on the stored data structures and not an exact measurement. The value is also recorded in the series "Settings" of IPS_GetStatsHistory. As the determination walks the whole settings tree, the series is only sampled once per hour.
Example
// Output the size of the settings
print_r(IPS_GetSettingsStats());
/* e.g. returns:
Array
(
[Count] => 1843
[TotalBytes] => 9437184
)
*/