Availability:built-in
thread_statistics(+Id,
+Key, -Value)Obtains statistical information on thread Id as statistics/2
does in single-threaded applications. This call supports all keys of
statistics/2,
although only stack sizes, cputime
,
inferences
, epoch
, errors
and warnings
yield different values for each thread. For errors
and
warnings
statistics/2
gives the global process count and this predicate gives the counts for
the calling thread.200There is no
portable interface to obtain thread-specific CPU time and some operating
systems provide no access to this information at all. On such systems
the total process CPU is returned. Thread CPU time is supported on
MS-Windows, Linux and MacOSX.