« Back to Product

Documentation

IPS_GetTraceStats

 array IPS_GetTraceStats ()

Returns

An array with the following key => value pairs:

Index Type Description
Count integer Number of stored trace entries
TotalBytes integer Estimated memory usage of the trace entries in bytes

Description

Warning

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 memory in which IP-Symcon keeps the chains of causes (traces) of actions, events, scripts and data flows. The individual entries of an object are returned by IPS_GetTraces.

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 "Traces" of IPS_GetStatsHistory.

Example

// Output the size of the trace memory
print_r(IPS_GetTraceStats());

/* e.g. returns:
Array
(
    [Count] => 12873
    [TotalBytes] => 6291456
)
*/
Any questions?