show_profile(+Options)This predicate first calls prolog:show_profile_hook/1.
If XPCE is loaded, this hook is used to activate a GUI interface to
visualise the profile results. If not, a report is printed to the
terminal according to Options:
- top(+N)
- Show the only top N predicates. Default is 25.
- cumulative(+Bool)
- If
true
(default false
), include the time
spent in children in the time reported for a predicate.