AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Execution profiling
          • Profiling predicates
            • profile/1
            • profile/2
            • show_profile/1
            • profiler/2
            • reset_profiler/0
            • noprofile/1
    • Packages
Availability::- use_module(library(statistics)).(can be autoloaded)
Sourceshow_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.
Availability::- use_module(library(statistics)).(can be autoloaded)
Sourceshow_profile(+Options)
Display last collected profiling data. Options are
top(N)
When generating a textual report, show the top N predicates.
cumulative(Bool)
If true (default false), show cumulative output in a textual report.