[MLton] Profiling...
Stephen Weeks
sweeks@sweeks.com
Mon Aug 7 20:19:19 PDT 2006
> > What is happening and how can I
> > get the profiling results for the passes that I added to MLton?
...
> Added expert option -prof-pass to control profiling individual passes.
> If a pass is in the -prof-pass list, it gets its own
> MLton.Profile.Data.t that is written out to an appropriately named
> file at the end of the pass.
...
> So, you'll want to run the mlton.alloc with -prof-pass yourPassName; the
> argument to -prof-pass is a regexp.
Of course, for this to work, your code must be using the MLton
infrastructure for compiler passes, namely
Control.{pass,passTypeCheck}.
More information about the MLton
mailing list