6 Profiling

6.2 A note on compiling code for profiling

You do not need to compile code in debugging mode to profile it. Indeed, profiling works on fully optimized code. However, optimizing can complicate profiler output by introducing new code items.

The only kind of profiling that requires special compilation is call counting: to produce useful results in call-count profiling, the Preferences > Details > Compiler dialog's Compile for tracing and call-counting check box should be checked, or the Shell.Options.Compiler.generateTraceProfileCode option should be set to true.


MLWorks User Guide (UNIX version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker