trivial diff: mprof_merge_runs man page

Fergus Henderson fjh at hydra.cs.mu.oz.au
Thu Oct 16 02:43:49 AEST 1997


scripts/mprof_merge_runs:
	Change the layout of the `--help' message so that
	the formatting of the automatically-generated man page
	comes out OK.
 
Index: mprof_merge_runs
===================================================================
RCS file: /home/staff/zs/imp/mercury/scripts/mprof_merge_runs,v
retrieving revision 1.1
diff -u -u -r1.1 mprof_merge_runs
--- mprof_merge_runs	1997/10/14 09:35:07	1.1
+++ mprof_merge_runs	1997/10/15 16:40:44
@@ -20,28 +20,31 @@
 	runs of a profiled Mercury program, for use by \`mprof'.
 
 Usage:
-	# compile with profiling enabled
-	mmc --profiling my_program	
+	First, compile with profiling enabled:
 
-	# 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
-
-	# 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.
-	with the following command:
+		mmc --profiling my_program	
 
-		env MERCURY_OPTIONS="-r100" ./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
 
 Options:
 	-h, --help

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list