[Haskell] profiling and GHC6.4

Simon Marlow simonmar at microsoft.com
Tue May 3 08:49:53 EDT 2005


[ redirecting to glasgow-haskell-users ]

> I have some problems getting profiling to work with a ghc-6.4 
> that I compiled from source.  Everything seems to work all 
> right, but the output doesn't contain any times; in time 
> profiling (+RTS -p) times are all zeros, with heap profiling, 
> I never get any 'samples' output, just an empty one.
> 
> I can go back to see if there's anything I configured 
> incorrectly, but this sounds weird enough that I thought I'd 
> ask the list if this is a known problem (preferably with a 
> known solution).  Is it?
> 
> (ghc 6.4 compiled from source with ghc 6.2.2 on Ubuntu 5.04, Linux
> 2.6.12-rc2)

It's not a known problem.  Is the program definitely running long enough
to get any samples?  (samples are by default every 0.02 seconds).

If you 'strace' the program you should be able to see the calls to the
OS to get the timestamp at various points.

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list