private void addEvalParseToStats() { if (parserStats != null) parserStats.addEvalParse(); }
private void addLoadParseToStats() { if (parserStats != null) parserStats.addLoadParse(); }
public double getParseTimePerKB() { long totalBytes = getTotalParsedBytes(); if (totalBytes == 0) return 0; return getTotalParseTime() / (totalBytes / 1000.0); }
this.parserStats = new ParserStats(this);
public Node parse(ByteList content, String file, DynamicScope scope, int lineNumber, boolean extraPositionInformation) { if (parserStats != null) parserStats.addJRubyModuleParse(); return parser.parse(file, content, scope, new ParserConfiguration(this, lineNumber, extraPositionInformation, false, true, config)); }
this.parserStats = new ParserStats(this);
public Node parse(ByteList content, String file, DynamicScope scope, int lineNumber, boolean extraPositionInformation) { if (parserStats != null) parserStats.addJRubyModuleParse(); return parser.parse(file, content, scope, new ParserConfiguration(this, lineNumber, extraPositionInformation, false, true, config)); }
public double getParseTimePerKB() { long totalBytes = getTotalParsedBytes(); if (totalBytes == 0) return 0; return getTotalParseTime() / (totalBytes / 1000.0); }
private void addEvalParseToStats() { if (parserStats != null) parserStats.addEvalParse(); }
private void addLoadParseToStats() { if (parserStats != null) parserStats.addLoadParse(); }
this.beanManager = BeanManagerFactory.create(this, config.isManagementEnabled()); this.jitCompiler = new JITCompiler(this); this.parserStats = new ParserStats(this); this.caches = new Caches();
public double getParseTimePerKB() { long totalBytes = getTotalParsedBytes(); if (totalBytes == 0) return 0; return getTotalParseTime() / (totalBytes / 1000.0); }
public Node parseEval(String content, String file, DynamicScope scope, int lineNumber) { if (parserStats != null) parserStats.addEvalParse(); return parser.parse(file, content.getBytes(), scope, new ParserConfiguration(this, lineNumber, false, false, false, false, config)); }
public Node parseFileFromMain(InputStream in, String file, DynamicScope scope) { if (parserStats != null) parserStats.addLoadParse(); ParserConfiguration parserConfig = new ParserConfiguration(this, 0, false, false, true, true, config); if (is2_0 || (is1_9 && config.getSourceEncoding() != null)) { setupSourceEncoding(parserConfig); } return parser.parse(file, in, scope, parserConfig); }
this.beanManager = BeanManagerFactory.create(this, config.isManagementEnabled()); this.jitCompiler = new JITCompiler(this); this.parserStats = new ParserStats(this); this.caches = new Caches();
public double getParseTimePerKB() { long totalBytes = getTotalParsedBytes(); if (totalBytes == 0) return 0; return getTotalParseTime() / (totalBytes / 1000.0); }
public Node parseEval(String content, String file, DynamicScope scope, int lineNumber) { if (parserStats != null) parserStats.addEvalParse(); return parser.parse(file, content.getBytes(), scope, new ParserConfiguration(this, lineNumber, false, false, false, false, config)); }
public Node parseFile(InputStream in, String file, DynamicScope scope, int lineNumber) { if (parserStats != null) parserStats.addLoadParse(); ParserConfiguration parserConfig = new ParserConfiguration(this, lineNumber, false, false, true, config); if (is2_0 || (is1_9 && config.getSourceEncoding() != null)) { setupSourceEncoding(parserConfig); } return parser.parse(file, in, scope, parserConfig); }
public Node parseEval(ByteList content, String file, DynamicScope scope, int lineNumber) { if (parserStats != null) parserStats.addEvalParse(); return parser.parse(file, content, scope, new ParserConfiguration(this, lineNumber, false, false, false, config)); }
public Node parseFileFromMain(InputStream in, String file, DynamicScope scope) { if (parserStats != null) parserStats.addLoadParse(); ParserConfiguration parserConfig = new ParserConfiguration(this, 0, false, false, true, true, config); if (is2_0 || (is1_9 && config.getSourceEncoding() != null)) { setupSourceEncoding(parserConfig); } return parser.parse(file, in, scope, parserConfig); }