Skip to content

Commit

Permalink
Improved export feature on finalization profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanmontt committed Jan 18, 2024
1 parent 5afe45a commit 03573ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/IllimaniProfiler/IllFinalizationProfiler.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ Class {
IllFinalizationProfiler >> exportData [

| writer csvFile fileName |
fileName := DateAndTime now asString , '.csv'.
fileName := DateAndTime now asStringYMDHM.
fileName replaceAll: Character space with: $H;
replaceAll: $: with: $m.
fileName := fileName , '-samplingRate-', samplingRate asString.
fileName := fileName , '.csv'.

csvFile := fileName asFileReference createFile writeStream.
writer := NeoCSVWriter on: csvFile.
writer writeHeader: ephemeronsCollection first headerToExportCSV.
Expand Down

0 comments on commit 03573ff

Please sign in to comment.