3.4 Profiling: the Profile structure

3.4.2 Invoking the profiler

To profile the evaluation of a function call, you use the profile function. The form of a call to profile is:

profile options f x 

This call produces an execution profile of the evaluation of the function f applied to the value x. Arguments are passed to the profiler with options, a value that specifies a stack-scanning interval (in "user" milliseconds, the time that is devoted solely to evaluating user code rather than internal MLWorks operations) and a selector function that determines a profiling manner to be used when profiling f.


MLWorks Reference Manual (version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker