Bug 481260 - JIT stats in tracemonkey can interfere with stdout-using embeddings. Take 2. r=jorendorff.

This commit is contained in:
Andreas Gal 2009-03-03 18:24:05 -06:00
parent 8f499d0a5e
commit 0ba5dbee9c

View File

@ -241,6 +241,7 @@ static bool did_we_check_sse2 = false;
#ifdef JS_JIT_SPEW
bool js_verboseDebug = getenv("TRACEMONKEY") && strstr(getenv("TRACEMONKEY"), "verbose");
bool js_verboseStats = getenv("TRACEMONKEY") && strstr(getenv("TRACEMONKEY"), "stats");
#endif
/* The entire VM shares one oracle. Collisions and concurrent updates are tolerated and worst
@ -4529,7 +4530,7 @@ extern void
js_FinishJIT(JSTraceMonitor *tm)
{
#ifdef JS_JIT_SPEW
if (js_verboseDebug && jitstats.recorderStarted) {
if (js_verboseStats && jitstats.recorderStarted) {
printf("recorder: started(%llu), aborted(%llu), completed(%llu), different header(%llu), "
"trees trashed(%llu), slot promoted(%llu), unstable loop variable(%llu), "
"breaks(%llu), returns(%llu), unstableInnerCalls(%llu)\n",