The gnatmetric tool takes an Ada source file as input and generates a file containing the metrics data as output. Various switches control which metrics are computed and output. You are able to choose between general gnatmetric and project-wide gnat metric.