Function
Shell.Profile
val profile: ('a -> 'b) -> 'a -> 'bprofile f x -> values
Produces an execution profile of f x, invoking the GUI profiler tool on that profile. Space and time profiling are both performed.
To perform the profiling this function calls MLWorks.Profile.profile with a stack-scan frequency of 10 milliseconds and the following selector function:
selector = fn _ => manner
Where manner was constructed by passing the following record to MLWorks.Profile.make_manner:
{ time = true,
space = true,
calls = false,
copies = false,
depth = 0,
breakdown = [] } See the MLWorks.Profile structure for more details of profiling. See the MLWorks User Guide for details of the GUI profiler tool.
If you are using MLWorks in TTY mode, this function prints the message:
Graphical profiler not available in TTY Listener