nitmetrics: refactor refinement usage metrics computation
[nit.git] / src / nitmetrics.nit
index 5d93ceb..6c5306e 100644 (file)
@@ -56,8 +56,11 @@ end
 # Now, we just have to play with the model!
 print "*** STATS ***"
 
-print ""
-compute_statistics(model)
+# Refinement usage metrics
+if toolcontext.opt_refinement.value then
+       print ""
+       compute_refinement_metrics(model)
+end
 
 # Self usage metrics
 if toolcontext.opt_self.value then