Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The tool fails on output produced by GHC 8.6.4 #1

Open
mrkkrp opened this issue May 28, 2019 · 3 comments
Open

The tool fails on output produced by GHC 8.6.4 #1

mrkkrp opened this issue May 28, 2019 · 3 comments

Comments

@mrkkrp
Copy link

mrkkrp commented May 28, 2019

It appears that if I run it with profiling output produced by GHC 8.6.4 it fails like so:

ghc-prof-aeson-flamegraph --profile-file valholl-new.prof --output-file valholl-new.txt
Error in $: Failed reading: satisfy

Maybe the format has changed a little bit and the tool should be updated?

@Fuuzetsu
Copy link
Owner

You'll have to provide a bit more information. Just the very basic test seems to still work.

[nix-shell:/tmp]$ ghc -O2 -fprof-auto -prof -rtsopts -fforce-recomp M.hs && ./M +RTS -pj -RTS && ghc-prof-aeson-flamegraph --profile-file M.prof --output-file /dev/null; echo Exited with $?
[1 of 1] Compiling Main             ( M.hs, M.o )
Linking M ...
20
Exited with 0

[nix-shell:/tmp]$ cat M.hs
module Main (main) where

f :: Int -> Int
f = (* 5)

g :: Int -> Int
g = flip div 5

main :: IO ()
main = print . g $ f 20

[nix-shell:/tmp]$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.6.4

@Fuuzetsu
Copy link
Owner

Fuuzetsu commented Jun 4, 2019

I received a profile file that exhibits the issue privately a while ago. I'm a bit short on time so I don't know when I can look.

@mrkkrp
Copy link
Author

mrkkrp commented Jun 4, 2019

It’s OK, I made progress without flame graphs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants