login

Availability::- use_module(library(statistics)).(can be autoloaded)
show_profile(+Style, +Number)
Show the collected results of the profiler. It shows the top Number predicates according to the percentage CPU-time used. If Style is plain, the time spent in each of the predicates is displayed. If Style is cumulative, the time spent in its siblings (callees) is added to the predicate.

This predicate first calls prolog:show_profile_hook/2. If XPCE is loaded, this hook is used to activate a GUI interface to visualise the profile results.