toolcontext: `process_options` require arguments.
[nit.git] / src / metrics / rta_metrics.nit
index 7feb836..99c0cb4 100644 (file)
@@ -79,6 +79,12 @@ private class RTAMetricsPhase
                gmetrics.collect(mtypes)
                gmetrics.to_console(1, not toolcontext.opt_nocolors.value)
                if csv then gmetrics.to_csv.save("{out}/complexity.csv")
+
+               # dump type and method infos
+               if csv then
+                       analysis.live_types_to_csv.save("{out}/rta_types.csv")
+                       analysis.live_methods_to_tree.write_to_file("{out}/rta_methods.dat")
+               end
        end
 end