Reputation: 1159
Is there a way to get total heap consumption (and consumption of specific datatypes) in app runtime (GHC)? I'm writing profiler for my interpreter, so I can't use standard ways.
Upvotes: 8
Views: 145
Reputation: 25763
You can get the total heap consumption and other stats via getGCStats
in module GHC.Stats, at least if you run your program with +RTS -T
.
Upvotes: 8