
statistics.pl -- Get information about resource usageThis library provides predicates to obtain information about resource usage by your program. The predicates of this library are for human use at the toplevel: information is printed. All predicates obtain their information using public low-level primitives. These primitives can be use to obtain selective statistics during execution.
statistics is det
statistics(-Stats:dict) is det
thread_statistics(?Thread, -Stats:dict) is nondet
time(:Goal) is nondetStatistics are retrieved using thread_statistics/3 on the calling thread. Note that not all systems support thread-specific CPU time. Notable, this is lacking on MacOS X.
call_time(:Goal, -Time:dict)
call_time(:Goal, -Time:dict, -Result)
profile(:Goal)
profile(:Goal, +Options)cpu or wall time. The default is CPU time.true (default false), show cumulative output in
a textual report.
show_profile(+Options)true (default false), show cumulative output in
a textual report.
profile_data(-Data) is detlist_of(Relative)list_of(Relative)Relative is a term of the shape below that represents a caller or callee. Future versions are likely to use a dict instead.
node(PredicateIndicator, CycleID, Ticks, TicksSiblings,
Calls, Redos, Exits)
prof_statistics(-Node) is det[private]
profile_procedure_data(?Pred, -Data:dict) is nondetnodes key.
value(+Key, +NodeData, -Value)[private]The following predicates are exported, but not or incorrectly documented.
call_time(Arg1, Arg2, Arg3)
profile(Arg1, Arg2)