Minor fixes for profiler documentation.

profiler/mercury_profile.m:
    Fix some comments.

profiler/options.m:
    Add a missing period.
This commit is contained in:
Julien Fischer
2026-02-18 13:51:39 +11:00
parent 7b549bc6ae
commit b7233ff507
2 changed files with 4 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ postprocess_options(Args, !IO) :-
VeryVerbose = no VeryVerbose = no
), ),
% Any empty list of arguments implies that we must build the call % An empty list of arguments implies that we must build the call
% graph from the dynamic information. % graph from the dynamic information.
( (
Args = [], Args = [],
@@ -116,7 +116,7 @@ usage_error(ErrorMessage, !IO) :-
% Display short_usage message. % Display short_usage message.
% XXX the only place we call short_usage is in usage_error above. % XXX the only place we call short_usage is in usage_error above.
% Also: why does the default name of the executable differ betweeen % Also: why does the default name of the executable differ between
% the two? % the two?
:- pred short_usage(io.text_output_stream::in, io::di, io::uo) is det. :- pred short_usage(io.text_output_stream::in, io::di, io::uo) is det.

View File

@@ -2,7 +2,7 @@
% vim: ft=mercury ts=4 sw=4 et % vim: ft=mercury ts=4 sw=4 et
%---------------------------------------------------------------------------% %---------------------------------------------------------------------------%
% Copyright (C) 1995-1997, 2000-2001, 2004-2006, 2011-2012 The University of Melbourne. % Copyright (C) 1995-1997, 2000-2001, 2004-2006, 2011-2012 The University of Melbourne.
% Copyright (C) 2015, 2019, 2021, 2023 The Mercury team. % Copyright (C) 2015, 2019, 2021, 2023, 2026 The Mercury team.
% This file may only be copied under the terms of the GNU General % This file may only be copied under the terms of the GNU General
% Public License - see the file COPYING in the Mercury distribution. % Public License - see the file COPYING in the Mercury distribution.
%---------------------------------------------------------------------------% %---------------------------------------------------------------------------%
@@ -189,7 +189,7 @@ options_help(Stream, !IO) :-
"\tSelect what to profile: time, amount of memory allocated, or", "\tSelect what to profile: time, amount of memory allocated, or",
"\tnumber of memory allocations (regardless of size).", "\tnumber of memory allocations (regardless of size).",
"-m", "-m",
"\tSame as `--profile memory-words'", "\tSame as `--profile memory-words'.",
"-M", "-M",
"\tSame as `--profile memory-cells'.", "\tSame as `--profile memory-cells'.",
"-t", "-t",