hiroto@hiroto-XPS-13-9360:~/haskell/cardano-diagnosis-program$ stack exec diagnosis "/home/hiroto/Downloads/logs (6).zip" -- +RTS -s
Running analysis on logs
Analysis done successfully!! See result-2018-04-19.html
2,031,484,272 bytes allocated in the heap
791,850,816 bytes copied during GC
189,980,952 bytes maximum residency (12 sample(s))
3,383,016 bytes maximum slop
433 MB total memory in use (0 MB lost due to fragmentation)
Tot time (elapsed) Avg pause Max pause
Gen 0 1910 colls, 1910 par 3.579s 0.844s 0.0004s 0.1591s
Gen 1 12 colls, 11 par 0.018s 0.004s 0.0004s 0.0012s
Parallel GC work balance: 5.67% (serial 0%, perfect 100%)
TASKS: 18 (1 bound, 17 peak workers (17 total), using -N8)
SPARKS: 0 (0 converted, 0 overflowed, 0 dud, 0 GC'd, 0 fizzled)
INIT time 0.000s ( 0.001s elapsed)
MUT time 0.716s ( 0.818s elapsed)
GC time 3.597s ( 0.848s elapsed)
EXIT time 0.000s ( 0.023s elapsed)
Total time 4.313s ( 1.691s elapsed)
Alloc rate 2,839,001,278 bytes per MUT second
Productivity 16.6% of total user, 49.8% of total elapsed
gc_alloc_block_sync: 18951
whitehole_spin: 0
gen[0].sync: 0
gen[1].sync: 7944
mizunashiさんの言うとおりGCにかなり時間を食ってました。
この場合はストリームライブラリなどを使ったほうがよいのでしょうか。