mprof_merge_runs - Mercury profiling utility

NAME  DESCRIPTION  USAGE  NOTES  OPTIONS  AUTHORS  COPYRIGHT  SEE ALSO 

NAME

mprof_merge_runs − Mercury profiling utility

DESCRIPTION

mprof_merge_runs merges the profiling data from different runs of a profiled Mercury program, for use by ‘mprof’.

USAGE

First, compile with profiling enabled:

mmc −−profiling my_program

Then, collect the profiling data:

./my_program args for first run
mprof_merge_runs
./my_program args for second run
mprof_merge_runs
./my_program args for third run
mprof_merge_runs

Finally, display the profile:

mprof −c | more

Note: If you just want to run your program N times with the same arguments, a simpler way of achieving this is to instead use the ‘−r<N>’ ("repeat N times") option to the Mercury runtime, which you can pass by setting the environment variable MERCURY_OPTIONS, e.g.

env MERCURY_OPTIONS=−r100 ./my_program

NOTES

mprof_merge_runs 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.

OPTIONS

−h, −−help

Print this help message.

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