Type
Profiler options.
MLWORKS.Profile
MLWorks.Profile
datatype options =
Options of
{scan : int,
selector : function_id -> manner} This type is used for passing options to the profiler. The profiler needs to know how often to scan the stack. It also needs a selector function, which is used to select a profiling manner with which to profile the function call passed to MLWorks.Profile.profile as f x.
scanBy "user" milliseconds, we mean the time that is devoted solely to evaluating user code, rather than internal MLWorks operations.
The profiler may not be able to respect very small values for scan, because it relies on the underlying operating system clock. Most UNIX operating systems provide 100 ticks per second (scan > 10 realistic) or 60 ticks per second (scan > 16 realistic). The clock granularity on Windows can vary from machine to machine, but scan values similar to those for UNIX are usually fine.
selector