if (config.isProfilingEntireRun()) {
if (config.isProfilingEntireRun()) {
/** * Constructor for Context. */ private ThreadContext(Ruby runtime) { this.runtime = runtime; this.nil = runtime.getNil(); this.is19 = runtime.is1_9(); if (runtime.getInstanceConfig().isProfilingEntireRun()) startProfiling(); this.runtimeCache = runtime.getRuntimeCache(); // TOPLEVEL self and a few others want a top-level scope. We create this one right // away and then pass it into top-level parse so it ends up being the top level. StaticScope topStaticScope = runtime.getStaticScopeFactory().newLocalScope(null); pushScope(new ManyVarsDynamicScope(topStaticScope, null)); Frame[] stack = frameStack; int length = stack.length; for (int i = 0; i < length; i++) { stack[i] = new Frame(); } BacktraceElement[] stack2 = backtrace; int length2 = stack2.length; for (int i = 0; i < length2; i++) { stack2[i] = new BacktraceElement(); } ThreadContext.pushBacktrace(this, "", "", 0); ThreadContext.pushBacktrace(this, "", "", 0); }
/** * Constructor for Context. */ private ThreadContext(Ruby runtime) { this.runtime = runtime; this.nil = runtime.getNil(); this.is19 = runtime.is1_9(); if (runtime.getInstanceConfig().isProfilingEntireRun()) startProfiling(); this.runtimeCache = runtime.getRuntimeCache(); // TOPLEVEL self and a few others want a top-level scope. We create this one right // away and then pass it into top-level parse so it ends up being the top level. StaticScope topStaticScope = runtime.getStaticScopeFactory().newLocalScope(null); pushScope(new ManyVarsDynamicScope(topStaticScope, null)); Frame[] stack = frameStack; int length = stack.length; for (int i = 0; i < length; i++) { stack[i] = new Frame(); } BacktraceElement[] stack2 = backtrace; int length2 = stack2.length; for (int i = 0; i < length2; i++) { stack2[i] = new BacktraceElement(); } ThreadContext.pushBacktrace(this, "", "", 0); ThreadContext.pushBacktrace(this, "", "", 0); }
if (runtime.getInstanceConfig().isProfilingEntireRun()) { runtime.printProfileData(context.getProfileCollection());
this.savedExcInLambda = null; if (runtime.getInstanceConfig().isProfilingEntireRun()) { startProfiling();
if (runtime.getInstanceConfig().isProfilingEntireRun()) { runtime.printProfileData(context.getProfileCollection());
this.savedExcInLambda = null; if (runtime.getInstanceConfig().isProfilingEntireRun()) { startProfiling();
if (runtime.getInstanceConfig().isProfilingEntireRun()) { runtime.printProfileData(context.getProfileData());
if (runtime.getInstanceConfig().isProfilingEntireRun()) { runtime.printProfileData(context.getProfileData());