PublicShow sourceswish_diagnostics.pl

Source redis_consumer_status(+Consumer, -Status) is semidet
True when Status is a dict describing the current status for Consumer.
Source swish_cluster_member(?Consumer, -Status) is nondet
Source stale_pengine(-Pengine) is nondet
True if Pengine is a Pengine who's thread died.
Source pengine_stale_module(-M) is nondet
Source pengine_stale_module(-M, -State) is nondet
True if M seems to be a pengine module with no associated pengine. State is a dict that describes what we know about the module.
Source swish_statistics(?State)
True if State is a statistics about SWISH
Source start_swish_stat_collector
Start collecting statistical performance information for the running SWISH server.
Source swish_stats(?Period, ?Stats:list(dict)) is nondet
Get the collected statistics for the given Period. Period is one of minute, hour, day, week or year. Stats is a list of statistics structures, last one first. The minute period contains 60 second measurements, the hour 60 minutes, the day 24 hours, etc. Each dict constains the following keys:
cpu
Total process CPU time
d_cpu
Differential CPU (is avg CPU per second)
pengines
Number of running pengines
pengines_created
Total number of pengines created
d_pengines_created
Pengines created per second
rss
Total resident memory
stack
Memory in all Prolog stacks.
Source swish_save_stats(?File)
Save statistcs to File or the default file.
Source swish_died_thread(TID, Status) is nondet
True if Id is a thread that died with Status and has not (yet) been joined. Note that such threads may exist for a short while.

Re-exported predicates

The following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.

Source malloc_info(-Info:dict) is det
Interface to malloc_info(), which provides an XML document describing the status of the GNU glibc malloc implementation. The XML document is parsed and translated into a dict with a similar structure. The malloc_info() XML is supposed to be self-explanatory.
See also
- Understanding glibc malloc