Add writing of profiling summary to CSV file