X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FFrontPanel.c;h=8953711d0544afeb6cdac534608fb6588bf5d5dc;hb=4be00ac12eb12a88abadce5d38a17d53fc9339a9;hp=5f28103ce0e361c0b00ba262fd4d2f368896bb7b;hpb=e5dc3296f115ecd148279f6ad2fa6484d43250e6;p=ghc-hetmet.git diff --git a/ghc/rts/FrontPanel.c b/ghc/rts/FrontPanel.c index 5f28103..8953711 100644 --- a/ghc/rts/FrontPanel.c +++ b/ghc/rts/FrontPanel.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: FrontPanel.c,v 1.4 2001/01/19 11:08:05 simonmar Exp $ + * $Id: FrontPanel.c,v 1.7 2001/10/31 14:38:00 simonmar Exp $ * * (c) The GHC Team 2000 * @@ -9,7 +9,8 @@ #ifdef RTS_GTK_FRONTPANEL -#define NON_POSIX_SOURCE +/* Alas, not Posix. */ +/* #include "PosixSource.h" */ #include "Rts.h" #include "RtsUtils.h" @@ -403,20 +404,9 @@ updateFrontPanel( void ) if (bd->free == (void *)-1) { colorBlock( a, &free_color, block_width, block_height, blocks_per_line ); - } else if (bd->gen != NULL) { - colorBlock( a, &gen_colors[bd->gen->no], + } else { + colorBlock( a, &gen_colors[bd->gen_no], block_width, block_height, blocks_per_line ); - } else if (bd->link != NULL) { - if (bd->link->free == (void *)-1) { - colorBlock( a, &free_color, - block_width, block_height, blocks_per_line ); - - } else if (bd->link->gen != NULL) { - colorBlock( a, &gen_colors[bd->link->gen->no], - block_width, block_height, blocks_per_line ); - } else { - belch("block at %p: can't indentify", bd->start); - } } } } @@ -615,7 +605,7 @@ residencyCensus( void ) g == 0 && s == 0) continue; if (RtsFlags.GcFlags.generations == 1) { - bd = generations[g].steps[s].to_space; + bd = generations[g].steps[s].to_blocks; } else { bd = generations[g].steps[s].blocks; } @@ -714,6 +704,7 @@ residencyCensus( void ) case STABLE_NAME: case MVAR: case MUT_VAR: + case MUT_CONS: case IND_PERM: case IND_OLDGEN_PERM: size = sizeW_fromITBL(info);