gnatmetric has two output formats. It can generate a textual (human-readable) form, and also XML. By default only textual output is generated.
When generating the output in textual form, gnatmetric creates for each Ada source file a corresponding text file containing the computed metrics. By default, this file is placed in the same directory as where the source file is located, and its name is obtained by appending the .metrix suffix to the name of the input file.
All the output information generated in XML format is placed in a single file. By default this file is placed in the current directory and has the name metrix.xml.
Some of the computed metrics are summed over the units passed to gnatmetric; for example, the total number of lines of code. By default this information is sent to stdout, but a file can be specified with the -og switch.
The following switches control the gnatmetric output: