MPROF_MERGE_RUNS(1)
okay bestie, welcome to MPROF_MERGE_RUNS(1), from the General Commands Manual π
This is the Mercury profiling utility page, and it's lowkey iconic. β¨
π NAME π
mprof_merge_runs β the Mercury profiling utility. That's the vibe, periodt. π
π¦ DESCRIPTION π¦
mprof_merge_runs merges the profiling data from different runs of a profiled Mercury program, for use by mprof. no cap β it's the merge bestie that pulls your separate run eras together so the profile can actually slay. β¨
πΈ USAGE πΈ
First, compile with profiling enabled, bestie:
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 variableMERCURY_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. iconic and helpful, we love to see it. π
π 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>π
xoxo, your Mercury Programmer's Manual bestie β page MPROF_MERGE_RUNS(1), dated 2026-04-24 π«Άπ
π¦ where this page comes from
- alpine 3.24: mercury-doc 22.01.8-r1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms