[project @ 2000-11-01 11:41:47 by simonmar]
authorsimonmar <unknown>
Wed, 1 Nov 2000 11:41:47 +0000 (11:41 +0000)
committersimonmar <unknown>
Wed, 1 Nov 2000 11:41:47 +0000 (11:41 +0000)
commit39a991713f0705bf2599930e378178a1d6e2b5f9
treee101eabc0bfd227d6fad21f596d08fa654380c3e
parente4cc93bdfceaccbcae9b7cd2122284ac8cdff0b0
[project @ 2000-11-01 11:41:47 by simonmar]
Add a basic "front panel" for GHC-compiled programs.

How to use it:

- re-autoconf & configure to detect GTK+

- add "GhcRtsWithFrontPanel = YES" to mk/build.mk

- rebuild the RTS

- compile up a program, add `gtk-config --libs` to the
  link command line

- run with program with +RTS -f,

- sit back & watch the show :-)  Programs with lots of
  heap-resident data are the most interesting.  For extra
  kicks, turn up the number of generations & steps like so:
  +RTS -f -G5 -T3.

- Bootstrap your compiler, and see in glorious technicolor
  just how much of a lumbering beast GHC really is.

This is a work in progress.  There's lots more stuff we could display
on the panel: suggestions/comments are of course welcome.  The window
layout was designed with GLADE, I'll commit the config file shortly.

I haven't quite figured out how we're going to integrate this with the
release yet (ie. whether we'll distribute two separate RTS's or what).
15 files changed:
ghc/rts/FrontPanel.c [new file with mode: 0644]
ghc/rts/FrontPanel.h [new file with mode: 0644]
ghc/rts/GC.c
ghc/rts/Makefile
ghc/rts/RtsFlags.c
ghc/rts/RtsFlags.h
ghc/rts/RtsStartup.c
ghc/rts/Storage.c
ghc/rts/StoragePriv.h
ghc/rts/VisCallbacks.c [new file with mode: 0644]
ghc/rts/VisCallbacks.h [new file with mode: 0644]
ghc/rts/VisSupport.c [new file with mode: 0644]
ghc/rts/VisSupport.h [new file with mode: 0644]
ghc/rts/VisWindow.c [new file with mode: 0644]
ghc/rts/VisWindow.h [new file with mode: 0644]