
15 Sep
2010
15 Sep
'10
6:28 a.m.
On 15/09/2010 03:49, Bruno MartÃnez Aguerre wrote:
To understand better whether ghc is taking advantage of my UNPACK pragmas, I want to profile my program and sort the allocations by type. I couldn't find an option to do this. -p is only by cost-center, and -hy only works for live data, and I want all allocations. Am I missing some option? Any tips to better debug UNPACK, apart from inspecting core?
That's a kind of profiling we don't have, I'm afraid. The allocation counter only has a single dimension. Inspecting core is the only way right now to determine whether UNPACK is doing what you hope it is. Cheers, Simon