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

problems parsing prof file #10

Open
flip111 opened this issue Jan 4, 2018 · 6 comments
Open

problems parsing prof file #10

flip111 opened this issue Jan 4, 2018 · 6 comments

Comments

@flip111
Copy link
Contributor

flip111 commented Jan 4, 2018

old way of doing things

» cat wai-test.prof | ghc-prof-flamegraph > wai-test.folded
ghc-prof-flamegraph: Malformed .prof file: couldn't find start line
CallStack (from HasCallStack):
  error, called at ghc-prof-flamegraph.hs:29:17 in main:Main

new way

» ghc-prof-flamegraph wai-test.prof

Just gets stuck .. doesn't terminate

for prof file see attachment
wai-test.prof.txt

ghc-prof-flamegraph was build with lts-9.18

@fosskers
Copy link

Just experienced the same thing.

@mitchellwrosen
Copy link

Are you running the latest version? HEAD (commit f1d7bfc) works fine for me.

@flip111
Copy link
Contributor Author

flip111 commented Feb 5, 2018

I was using ghc-prof-flamegraph of lts-9.18 .. i don't think it's HEAD because stack lags behind a little bit. When you say it works fine for you, do you mean with the wai-test.prof.txt file i attached?

@mitchellwrosen
Copy link

@flip111 Yeah.

> ghc-prof-flamegraph wai-test.prof.txt
Output written to /home/mitchell/wait-test.prof.svg

@flip111
Copy link
Contributor Author

flip111 commented Feb 5, 2018

ok great. Looks like ghc-prof-flamegraph is not directly on stackage and i was using version 0.1.2.1 of ghc-prof-flamegraph which is the latest one at hackage.

Perhaps a new release can be made and this issue can be closed?

EDIT: perhaps first merge #11 before a new release

@flip111
Copy link
Contributor Author

flip111 commented Jun 7, 2018

@mgsloan now that #11 is merged, can a new release be put on stackage?

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

3 participants