profile(:Goal)Execute Goal just like once/1,
collecting profiling statistics, and call show_profile([]
)
.
With XPCE installed this opens a graphical interface to examine the
collected profiling data.
profile(:Goal)
profile(:Goal,
+Options)Run Goal under the execution profiler. Defined options are:
- time(Which)
- Profile
cpu
or wall
time. The default is CPU
time.
- 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.