[project @ 2002-02-04 20:21:16 by sof]
[ghc-hetmet.git] / ghc / rts / RtsFlags.c
index 5424572..f9ddc83 100644 (file)
@@ -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<cc>,...  specific cost centre(s) (NOT STACKS!)",
+"    -hc<cc>,...  specific cost centre(s) (top of stack only)",
+"    -hC<cc>,...  specific cost centre(s) (anywhere in stack)",
 "    -hm<mod>...  all cost centres from the specified modules(s)",
 "    -hd<des>,... closures with specified closure descriptions",
 "    -hy<typ>...  closures with specified type descriptions",
@@ -435,7 +437,7 @@ usage_text[] = {
 "",
 "  -R<size>       Set the maximum retainer set size (default: 8)",
 "",
-"  -i<msec>       Time between heap samples (msec, default: 20)",
+"  -i<msec>       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;