Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save blairdrummond/f7d238bd1f6408f5817b4473cc0ec526 to your computer and use it in GitHub Desktop.
Save blairdrummond/f7d238bd1f6408f5817b4473cc0ec526 to your computer and use it in GitHub Desktop.
Memory profile for clumps.hs
» Fri Jul 27 23:32 2018 Time and Allocation Profiling Report (Final)
» code +RTS -p -h -M1000m -RTS
» total time = 0.27 secs (274 ticks @ 1000 us, 1 processor)
» total alloc = 1,196,325,952 bytes (excludes profiling overheads)
COST CENTRE MODULE SRC %time %alloc
clumps Main code.hs:(18,1)-(43,38) 51.8 28.3
clumps.slideInsert Main code.hs:(24,7)-(26,121) 34.3 70.8
readTextDevice Data.Text.Internal.IO Data/Text/Internal/IO.hs:133:39-64 6.9 0.1
readChunk Data.Text.Internal.IO Data/Text/Internal/IO.hs:(156,1)-(163,10) 5.8 0.8
hGetContents Data.Text.Lazy.IO Data/Text/Lazy/IO.hs:(95,1)-(99,44) 1.1 0.1
individual inherited
COST CENTRE MODULE SRC no. entries %time %alloc %time %alloc
MAIN MAIN <built-in> 187 0 0.0 0.0 100.0 100.0
CAF Main <entire-module> 373 0 0.0 0.0 0.0 0.0
main Main code.hs:(48,1)-(51,26) 374 1 0.0 0.0 0.0 0.0
CAF Data.Text.Lazy <entire-module> 372 0 0.0 0.0 0.0 0.0
splitAt Data.Text.Lazy Data/Text/Lazy.hs:(1266,1)-(1274,50) 384 1 0.0 0.0 0.0 0.0
CAF Data.Text.Lazy.IO <entire-module> 370 0 0.0 0.0 0.0 0.0
getContents Data.Text.Lazy.IO Data/Text/Lazy/IO.hs:153:1-32 376 1 0.0 0.0 0.0 0.0
hGetContents Data.Text.Lazy.IO Data/Text/Lazy/IO.hs:(95,1)-(99,44) 377 1 0.0 0.0 0.0 0.0
CAF GHC.Conc.Signal <entire-module> 294 0 0.0 0.0 0.0 0.0
CAF GHC.IO.Encoding <entire-module> 276 0 0.0 0.0 0.0 0.0
CAF GHC.IO.Encoding.Iconv <entire-module> 274 0 0.0 0.0 0.0 0.0
CAF GHC.IO.Exception <entire-module> 268 0 0.0 0.0 0.0 0.0
CAF GHC.IO.Handle.FD <entire-module> 266 0 0.0 0.0 0.0 0.0
main Main code.hs:(48,1)-(51,26) 375 0 0.0 0.0 100.0 100.0
main.result Main code.hs:50:7-34 380 1 0.0 0.0 86.1 99.1
clumps Main code.hs:(18,1)-(43,38) 381 1 51.8 28.3 86.1 99.1
clumps.slideInsert Main code.hs:(24,7)-(26,121) 389 4234887 34.3 70.8 34.3 70.8
clumps.(...) Main code.hs:23:7-40 383 1 0.0 0.0 0.0 0.0
splitAt Data.Text.Lazy Data/Text/Lazy.hs:(1266,1)-(1274,50) 385 0 0.0 0.0 0.0 0.0
splitAt Data.Text Data/Text.hs:(1339,1)-(1343,63) 388 1 0.0 0.0 0.0 0.0
clumps.text' Main code.hs:23:7-40 382 1 0.0 0.0 0.0 0.0
getContents Data.Text.Lazy.IO Data/Text/Lazy/IO.hs:153:1-32 378 0 0.0 0.0 13.9 0.9
hGetContents Data.Text.Lazy.IO Data/Text/Lazy/IO.hs:(95,1)-(99,44) 379 0 1.1 0.1 13.9 0.9
readChunk Data.Text.Internal.IO Data/Text/Internal/IO.hs:(156,1)-(163,10) 386 2068 5.8 0.8 12.8 0.8
readTextDevice Data.Text.Internal.IO Data/Text/Internal/IO.hs:133:39-64 387 2068 6.9 0.1 6.9 0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment