public void linkModel(EObject model, IDiagnosticConsumer diagnosticsConsumer) { StoppedTask task = Stopwatches.forTask("installing proxies (AbstractCleaningLinker.linkModel)"); task.start(); boolean debug = log.isDebugEnabled(); long time = System.currentTimeMillis(); beforeModelLinked(model, diagnosticsConsumer); if (debug) { long now = System.currentTimeMillis(); log.debug("beforeModelLinked took: " + (now - time) + "ms"); time = now; } doLinkModel(model, diagnosticsConsumer); if (debug) { long now = System.currentTimeMillis(); log.debug("doLinkModel took: " + (now - time) + "ms"); time = now; } afterModelLinked(model, diagnosticsConsumer); if (debug) { long now = System.currentTimeMillis(); log.debug("afterModelLinked took: " + (now - time) + "ms"); time = now; } task.stop(); }
public final IParseResult parse(Reader reader) { StoppedTask task = Stopwatches.forTask("AbstractParser.parse"); try { task.start(); return doParse(reader); } finally { task.stop(); } }
@Override public IResolvedTypes reentrantResolve(CancelIndicator monitor) { if (resolving) { throw new UnsupportedOperationException("TODO: import a functional handle on the type resolution that delegates to the best available (current, but evolving) result"); } StoppedTask task = Stopwatches.forTask("DefaultReentrantTypeResolver.resolve"); try { task.start(); resolving = true; return resolve(monitor); } catch(Throwable e) { clear(); if (operationCanceledManager.isOperationCanceledException(e)) { operationCanceledManager.propagateAsErrorIfCancelException(e); } Throwables.throwIfUnchecked(e); throw new RuntimeException(e); } finally { resolving = false; task.stop(); } }
public List<Issue> validate(Resource resource, final CheckMode mode, CancelIndicator mon) { StoppedTask task = Stopwatches.forTask("ResourceValidatorImpl.validation"); try { task.start();
StoppedTask task = Stopwatches.forTask("JVM Model inference (JvmModelAssociator.installDerivedState)"); task.start(); JvmDeclaredTypeAcceptor acceptor = new JvmDeclaredTypeAcceptor(resource);
@Override public void buildFinished(IJavaProject project) { StoppedTask task = Stopwatches.forTask("DebugSourceInstallingCompilationParticipant.install"); try { task.start();
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException { long startTime = System.currentTimeMillis(); StoppedTask task = Stopwatches.forTask(String.format("XtextBuilder.build[%s]", getKindAsString(kind))); try { task.start();
public ActiveAnnotationContexts computeContext(final XtendFile file) { final Stopwatches.StoppedTask task = Stopwatches.forTask("[macros] findActiveAnnotations (ActiveAnnotationContextProvider.computeContext)"); task.start(); try {
public Object inferencePhase(final ActiveAnnotationContext ctx, final CancelIndicator monitor) { Object _xblockexpression = null; final Stopwatches.StoppedTask task = Stopwatches.forTask("[macros] inferencePhase (AnnotationProcessor.inferencePhase)"); task.start(); Object _xtrycatchfinallyexpression = null;
public Object validationPhase(final ActiveAnnotationContext ctx, final CancelIndicator monitor) { Object _xblockexpression = null; final Stopwatches.StoppedTask task = Stopwatches.forTask("[macros] validationPhase (AnnotationProcessor.validationPhase)"); task.start(); Object _xtrycatchfinallyexpression = null;
Object _xblockexpression = null; final Stopwatches.StoppedTask task = Stopwatches.forTask("[macros] indexingPhase (AnnotationProcessor.indexingPhase)"); task.start(); Object _xtrycatchfinallyexpression = null;