mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 607539 - Change how profiler aborts work (r=dmandelin)
This commit is contained in:
parent
40817af4b8
commit
a7631e3393
@ -16898,7 +16898,7 @@ LoopProfile::isCompilationExpensive(JSContext *cx, uintN depth)
|
||||
return true;
|
||||
|
||||
/* Is the code too branchy? */
|
||||
if (numSelfOpsMult >= numSelfOps*100000)
|
||||
if (numSelfOpsMult > numSelfOps*100000)
|
||||
return true;
|
||||
|
||||
/* Ensure that inner loops aren't too expensive. */
|
||||
@ -17068,8 +17068,9 @@ AbortProfiling(JSContext *cx)
|
||||
{
|
||||
debug_only_print0(LC_TMProfiler, "Profiling complete (aborted)\n");
|
||||
TraceMonitor *tm = &JS_TRACE_MONITOR(cx);
|
||||
tm->profile->numSelfOps = MAX_PROFILE_OPS;
|
||||
tm->profile->decide(cx);
|
||||
tm->profile->profiled = true;
|
||||
tm->profile->traceOK = false;
|
||||
tm->profile->execOK = false;
|
||||
tm->profile = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user