Track timeout side exits separately in jitstats (472761, r=jwalden).

This commit is contained in:
Andreas Gal 2009-01-09 16:38:57 -08:00
parent 4a9dbdaf12
commit 73fd6451b9
2 changed files with 7 additions and 2 deletions

View File

@ -39,6 +39,7 @@ JITSTAT(recorderStarted)
JITSTAT(recorderAborted) JITSTAT(recorderAborted)
JITSTAT(traceCompleted) JITSTAT(traceCompleted)
JITSTAT(sideExitIntoInterpreter) JITSTAT(sideExitIntoInterpreter)
JITSTAT(timeoutIntoInterpreter)
JITSTAT(typeMapMismatchAtEntry) JITSTAT(typeMapMismatchAtEntry)
JITSTAT(returnToDifferentLoopHeader) JITSTAT(returnToDifferentLoopHeader)
JITSTAT(traceTriggered) JITSTAT(traceTriggered)

View File

@ -3748,8 +3748,12 @@ js_ExecuteTree(JSContext* cx, Fragment* f, uintN& inlineCallCount,
JS_ASSERT(!fp->callee || fp->thisp == JSVAL_TO_OBJECT(fp->argv[-1])); JS_ASSERT(!fp->callee || fp->thisp == JSVAL_TO_OBJECT(fp->argv[-1]));
} }
#endif #endif
#ifdef JS_JIT_SPEW
AUDIT(sideExitIntoInterpreter); if (innermost->exitType != TIMEOUT_EXIT)
AUDIT(sideExitIntoInterpreter);
else
AUDIT(timeoutIntoInterpreter);
#endif
return innermost; return innermost;
} }