Heap profiling ghc gives hp2ps error
Running GHC with heap profiling and then running hp2ps
on the result gives
hp2ps: ghc-stage2.hp, line 17405, samples out of sequence
Reproduction (GHC commit 4700baaf)
cabal unpack skylighting-0.1.1.5
cd skylighting-0.1.1.5
cabal install --enable-profiling --only-dependencies -fexecutable
cabal configure --with-ghc=$HOME/src/ghc-clean-july12/inplace/bin/ghc-stage2 \
--enable-profiling -fexecutable
cabal build
touch src/Skylighting/Syntax/Php.hs
/home/dfeuer/src/ghc-clean-july12/inplace/bin/ghc-stage2 --make -i \
-isrc -idist/build -O -prof -fprof-auto-exported -osuf p_o -hisuf \
p_hi -optPdist/build/autogen/cabal_macros.h -hide-all-packages \
-package-db dist/package.conf.inplace -package-id aeson-1.2.1.0 \
-package base-4.10.0.0 -package blaze-html-0.9.0.1 -package \
bytestring-0.10.8.2 -package case-insensitive-1.2.0.10 -package \
containers-0.5.10.2 -package directory-1.3.0.2 -package \
filepath-1.4.1.2 -package hxt-9.3.1.16 -package mtl-2.2.1 -package \
regex-pcre-builtin-0.94.4.8.8.35 -package safe-0.3.15 -package \
text-1.2.2.2 -package utf8-string-1.0.1.1 -XHaskell2010 \
Skylighting.Types Skylighting.Regex \
Skylighting.Tokenizer Skylighting.Syntax.Php -j1 +RTS \
-s -h -N1
hp2ps ghc-stage2.hp