Hi,

author of ghc-heap-view here.

Am Mittwoch, den 30.08.2017, 18:34 +0300 schrieb Yitzchak Gale:
> Getting ghc-vis to compile looks hopeless, for a number of reasons.
> The dependencies on gtk and cairo are huge.

Is that really a problem?

>  It hasn't been updated
> on Hackage for a year and a half. It requires base < 4.9.

GitHub is already ahead. I guess this just needs to be uploaded?
https://github.com/def-/ghc-vis/blob/master/ghc-vis.cabal


> I need to run
> the visualizer either on a headless Ubuntu 16.04 server, or locally on
> Windows.

Ok, that is more tricky.

> The heap scraper backend for ghc-vis, ghc-heap-view, looks usable,
> and better supported than vacuum. But is there a quick and simple
> visualizer for its output, without ghc-vis?


Well, the :printHeap command that comes with it does “visualize” things
as something resembling Haskell syntax:

    let x1 = "A Value"
        x16 = True : False : x16
    in (x1,x1,x16)

I don’t know of anything more graphical besides ghc-vis, but you could
roll your own, if you want to; you can use ghc-heap-view to get a graph
using
http://hackage.haskell.org/package/ghc-heap-view-0.5.9/docs/GHC-HeapView.html#v:buildHeapGraph
and then visualize that as you like.

Greetings,
Joachim

-- 
Joachim “nomeata” Breitner
  m...@joachim-breitner.de
  https://www.joachim-breitner.de/

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users

Reply via email to