oneumyvakin

AMD uProf generates wrong CSV format of section header

Discussion created by oneumyvakin on Apr 16, 2018
Latest reply on Apr 17, 2018 by swarup

AMD uProf generates following header format:

 

ALL PROCESSES (Sort Event - Energy) PROCESS,"Energy" (milli Joules),"CPU Time" (seconds)

 

According to RFC 4180 - Common Format and MIME Type for Comma-Separated Values (CSV) Files  format of this line "PROCESS,"Energy" (milli Joules),"CPU Time" (seconds)" is wrong, you can't have partially quoting of field, or quotes should be escaped by preceding it with  another double quote

Right forms are:

 

PROCESS,"Energy (milli Joules)","CPU Time (seconds)"

 

PROCESS,Energy (milli Joules),CPU Time (seconds)

 

PROCESS,"""Energy"" (milli Joules)","""CPU Time"" (seconds)"

Outcomes