X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FRtsFlags.c;h=f9ddc832f18a90dd5b4ee5b5065de2a5e6084d2f;hb=05bead0e7116e21417d7c88324fe86d4dcb44048;hp=5424572224fc834d3f3b38d4d17603b59c8af900;hpb=3c22fb21fb18e27ce8d941069a6915fce584a526;p=ghc-hetmet.git diff --git a/ghc/rts/RtsFlags.c b/ghc/rts/RtsFlags.c index 5424572..f9ddc83 100644 --- a/ghc/rts/RtsFlags.c +++ b/ghc/rts/RtsFlags.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: RtsFlags.c,v 1.54 2001/11/28 14:55:34 simonmar Exp $ + * $Id: RtsFlags.c,v 1.56 2001/12/12 14:31:43 simonmar Exp $ * * (c) The AQUA Project, Glasgow University, 1994-1997 * (c) The GHC Team, 1998-1999 @@ -250,13 +250,14 @@ void initRtsFlagsDefaults(void) #ifdef PROFILING RtsFlags.ProfFlags.doHeapProfile = rtsFalse; - RtsFlags.ProfFlags.profileInterval = 20; + RtsFlags.ProfFlags.profileInterval = 100; RtsFlags.ProfFlags.showCCSOnException = rtsFalse; RtsFlags.ProfFlags.maxRetainerSetSize = 8; RtsFlags.ProfFlags.modSelector = NULL; RtsFlags.ProfFlags.descrSelector = NULL; RtsFlags.ProfFlags.typeSelector = NULL; RtsFlags.ProfFlags.ccSelector = NULL; + RtsFlags.ProfFlags.ccsSelector = NULL; RtsFlags.ProfFlags.retainerSelector = NULL; RtsFlags.ProfFlags.bioSelector = NULL; @@ -426,7 +427,8 @@ usage_text[] = { " r = retainer", " b = biography (LAG,DRAG,VOID,USE)", " A subset of closures may be selected thusly:", -" -hc,... specific cost centre(s) (NOT STACKS!)", +" -hc,... specific cost centre(s) (top of stack only)", +" -hC,... specific cost centre(s) (anywhere in stack)", " -hm... all cost centres from the specified modules(s)", " -hd,... closures with specified closure descriptions", " -hy... closures with specified type descriptions", @@ -435,7 +437,7 @@ usage_text[] = { "", " -R Set the maximum retainer set size (default: 8)", "", -" -i Time between heap samples (msec, default: 20)", +" -i Time between heap samples (msec, default: 100)", "", " -xc Show current cost centre stack on raising an exception", # endif @@ -889,10 +891,12 @@ error = rtsTrue; *right = '\0'; switch (rts_argv[arg][2]) { - case 'C': case 'c': // cost centre label select RtsFlags.ProfFlags.ccSelector = left; break; + case 'C': + RtsFlags.ProfFlags.ccsSelector = left; + break; case 'M': case 'm': // cost centre module select RtsFlags.ProfFlags.modSelector = left;