mlprof (1) Linux Manual Page
NAME
mlprof – display profiling information for a MLton-compiled executable
SYNOPSIS
mlprof [option …] a.out [mlmon.out …]
DESCRIPTION
mlprof extracts information from an executable compiled by MLton with -profile alloc or -profile time and the resulting mlmon.out file produced by running the executable.
The output of mlprof consists of an initial line indicating the total amount of CPU time or bytes allocated. After this, source functions are listed along with the percentage of this total that they used, in decreasing order. If the program was compiled with -profile-stack true, mlprof will display the time spent or bytes allocated while the function was on the stack and in GC in addition to the time or bytes that the function is directly responsible for.
With multiple mlmon.out files, mlprof will sum the profiling information.
OPTIONS
-call-graphfile- Write a call graph containing the table data to a dot file. See the
MLton User Guidefor details. -graph-titlestring- Set the call-graph title.
-gray{false|true}- Gray call-graph nodes according to stack %. This only makes sense if the executable was compiled
-profile-stack true. -keepexp- Only show functions specified by exp. For details on the allowed expressions, see the
MLton User Guide. Multiple-keepexpressions are not allowed. -mlmonfile- Process the list of whitespace-separated
mlmon.outfiles found in the specified file. -raw{false|true}- Show the raw counts in addition to the percentages.
-show-line{false|true}- Show the file and line for each function.
-splitregexp- Treat duplicates of functions whose name matches regexp as different functions.
-threshx- An abbreviation for
-keep ‘(thresh x)’, which only prints information about functions whose percentage is greater than or equal tox, where 0 <=x<= 100.0. -tolerant{false|true}- Print a warning about broken
mlmon.outfiles, but do not exit.
SEE ALSO
mlton(1) and the MLton Guide.
