Skip to content

Commit

Permalink
Hacked the exportation of the gc logger because NeoCSV does not suppo…
Browse files Browse the repository at this point in the history
…rt exporting an array of numbers :(
  • Loading branch information
jordanmontt committed Feb 13, 2024
1 parent 0fb68a4 commit e0ed8cc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/IllimaniProfiler/GCLogger.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ Class {
{ #category : 'exporting' }
GCLogger >> export: writeStream data: someData header: aHeaderInCollection [

(NeoCSVWriter on: writeStream)
| writer |
writer := (NeoCSVWriter on: writeStream)
writeHeader: #( #fullGCsBySecond );
fieldWriter: #raw;
nextPut: someData;
close
yourself.

someData do: [ :e | writer nextPut: { e } ].
writer close
]

{ #category : 'exporting' }
Expand Down

0 comments on commit e0ed8cc

Please sign in to comment.