Availability::- use_module(library(statistics)).(can be autoloaded)
profile(:Goal,
+Style, +Number)Execute Goal just like time/1.
Collect profiling statistics and show the top Number
procedures on the current output stream (see show_profile/1)
using Style. The results are kept in the database until reset_profiler/0
or profile/3
is called and can be displayed again with show_profile/1.
The profile/1
predicate is a backward compatibility interface to profile/1.
The other predicates in this section are low-level predicates for
special cases.