summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a74e715)
Simply use `live_types_to_csv` and `live_methods_to_tree` to produce
two files in the correct output directory.
This helps the debugging of engines when RTA is buggy or misused.
Signed-off-by: Jean Privat <jean@pryen.org>
gmetrics.collect(mtypes)
gmetrics.to_console(1, not toolcontext.opt_nocolors.value)
if csv then gmetrics.to_csv.save("{out}/complexity.csv")
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")
+
+ var s = new OFStream.open("{out}/rta_methods.dat")
+ analysis.live_methods_to_tree.pretty(s)
+ s.close
+ end