Generate a csv file with various metrics at the visualization step