MPROF_MERGE_RUNS(1)

πŸ“¦
version 22.01.8 Β· 3 versions
, in alpine 3.24

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 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. iconic and helpful, we love to see it. πŸ’…

πŸ’– AUTHORS πŸ’–

The Mercury team. πŸŽ€

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 ⭐


xoxo, your Mercury Programmer's Manual bestie β€” page MPROF_MERGE_RUNS(1), dated 2026-04-24 πŸ«ΆπŸ’–

πŸ“¦ where this page comes from