mprof - Mercury profiler, version 22.01.8, on x86_64-alpine-linux-musl

NAME  SYNOPSIS  DESCRIPTION  NOTES  ARGUMENTS  OPTIONS  PROFILER OPTIONS  FILENAME OPTIONS  SNAPSHOT OPTIONS  VERBOSITY OPTIONS  AUTHORS  COPYRIGHT  SEE ALSO 

NAME

mprof − Mercury profiler, version 22.01.8, on x86_64−alpine−linux−musl

SYNOPSIS

mercury_profile [<options>] [<files>]

DESCRIPTION

‘mprof’ produces execution profiles for Mercury programs. It outputs a flat profile and optionally also a hierarchical (call graph based) profile based on data collected during program execution.

NOTES

mprof is one of the development tools that are part of the Mercury distribution.

This manual page is limited to a brief summary. For further information see the Mercury User’s Guide.

ARGUMENTS

If no <files> are specified, then the ‘−−use−dynamic’ option is implied: the call graph will be built dynamically. Otherwise, the <files> specified should be the ‘.prof’ file for every module in the program. The ‘.prof’ files, which are generated automatically by the Mercury compiler, contain the program’s static call graph.

OPTIONS

−h, −−help Print this usage message.

PROFILER OPTIONS

−c, −−call−graph

Include the call graph profile.

−d, −−use−dynamic

Build the call graph dynamically.

−p, −−profile {time, memory−words, memory−cells}

Select what to profile: time, amount of memory allocated, or number of memory allocations (regardless of size).

−m

Same as ‘−−profile memory−words’

−M

Same as ‘−−profile memory−cells’.

−t

Same as ‘−−profile time’.

−−no−demangle

Output the mangled predicate and function names.

FILENAME OPTIONS

−C <file>, −−count−file <file>

Name of the count file. Usually ‘Prof.Counts’, ‘Prof.MemoryWords’, or ‘Prof.MemoryCells’.

−D <file>, −−declaration−file <file>

Name of the declaration file. Usually ‘Prof.Decl’.

−P <file>, −−call−pair−file <file>

Name of the call−pair file. Usually ‘Prof.CallPair’.

−L <file>, −−library−callgraph <file>

Name of the file which contains the call graph for the library modules.

SNAPSHOT OPTIONS

−s, −−snapshots

Show summary of heap objects at the times ‘benchmarking.report_memory_attribution’ was called. This overrides other profiler modes.

−−snapshots−file <file>

Name of the snapshots file. Usually ‘Prof.Snapshots’.

−T, −−snapshots−by−type

Group results by type.

−b, −−snapshots−brief

Generate a brief profile.

−r, −−snapshots−include−runtime

Include internal Mercury runtime structures in the profile. These are excluded by default.

VERBOSITY OPTIONS

−v, −−verbose

Output progress messages at each stage.

−V, −−very−verbose

Output very verbose progress messages.

AUTHORS

The Mercury team.

COPYRIGHT

This program and its documentation are copyright by the University of Melbourne and the Mercury team. They may be copied only under the terms of the GNU General Public License − see the file COPYING in the Mercury distribution.

SEE ALSO

The Mercury User’s Guide.

<http://www.mercurylang.org/information/documentation.html>


Updated 2024-01-29 - jenkler.se | uex.se