
Hi list, 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? Thanks, Bruno

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

On Wed, 15 Sep 2010 07:28:25 -0300, Simon Marlow
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.
Thanks, Simon. Bruno
participants (3)
-
Bruno Martínez
-
Bruno Martínez Aguerre
-
Simon Marlow