[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).
Showing
- ghc/rts/FrontPanel.c 814 additions, 0 deletionsghc/rts/FrontPanel.c
- ghc/rts/FrontPanel.h 31 additions, 0 deletionsghc/rts/FrontPanel.h
- ghc/rts/GC.c 19 additions, 3 deletionsghc/rts/GC.c
- ghc/rts/Makefile 19 additions, 1 deletionghc/rts/Makefile
- ghc/rts/RtsFlags.c 14 additions, 3 deletionsghc/rts/RtsFlags.c
- ghc/rts/RtsFlags.h 5 additions, 1 deletionghc/rts/RtsFlags.h
- ghc/rts/RtsStartup.c 17 additions, 1 deletionghc/rts/RtsStartup.c
- ghc/rts/Storage.c 5 additions, 2 deletionsghc/rts/Storage.c
- ghc/rts/StoragePriv.h 3 additions, 1 deletionghc/rts/StoragePriv.h
- ghc/rts/VisCallbacks.c 78 additions, 0 deletionsghc/rts/VisCallbacks.c
- ghc/rts/VisCallbacks.h 30 additions, 0 deletionsghc/rts/VisCallbacks.h
- ghc/rts/VisSupport.c 162 additions, 0 deletionsghc/rts/VisSupport.c
- ghc/rts/VisSupport.h 38 additions, 0 deletionsghc/rts/VisSupport.h
- ghc/rts/VisWindow.c 738 additions, 0 deletionsghc/rts/VisWindow.c
- ghc/rts/VisWindow.h 5 additions, 0 deletionsghc/rts/VisWindow.h
Loading
Please register or sign in to comment