Added CSV logging to chsemd for perf analysis