Control printing of GC stats with GC_STATS env. var rather than #if 0/1.

This commit is contained in:
Jesse D. McDonald 2010-04-10 15:54:52 -05:00
parent 7a651dc9d1
commit 0a6d2f3f73
1 changed files with 9 additions and 5 deletions

View File

@ -95,12 +95,16 @@ int main(int argc, char **argv)
nl();
}
#if 1
{
const char *p = getenv("GC_STATS");
if (p && atoi(p))
{
nl();
fflush(stdout);
fprint_gc_stats(stderr);
#endif
}
}
}
return 0;