Allocation break-down by type

Bruno Martínez bruno.uy at gmail.com
Sat Sep 18 20:04:25 EDT 2010


On Wed, 15 Sep 2010 07:28:25 -0300, Simon Marlow <marlowsd at gmail.com>
wrote:

> 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


More information about the Glasgow-haskell-users mailing list