Package com.google.dart.engine.utilities.instrumentation

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder


    }
  }

  @Override
  public LineInfo computeLineInfo(Source source) throws AnalysisException {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-computeLineInfo");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.computeLineInfo(source);
    } catch (AnalysisException e) {
      recordAnalysisException(instrumentation, e);
      throw e;
    } finally {
      instrumentation.log();
    }
  }
View Full Code Here


    return basis.computeResolvableCompilationUnit(source);
  }

  @Override
  public void dispose() {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-dispose");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      basis.dispose();
    } finally {
      instrumentation.log();
    }
  }
View Full Code Here

    }
  }

  @Override
  public boolean exists(Source source) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-exists");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.exists(source);
    } finally {
      instrumentation.log();
    }
  }
View Full Code Here

    }
  }

  @Override
  public AnalysisContext extractContext(SourceContainer container) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-extractContext");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      InstrumentedAnalysisContextImpl newContext = new InstrumentedAnalysisContextImpl();
      basis.extractContextInto(container, newContext.basis);
      return newContext;
    } finally {
      instrumentation.log();
    }

  }
View Full Code Here

    return basis.extractContextInto(container, newContext);
  }

  @Override
  public AnalysisOptions getAnalysisOptions() {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getAnalysisOptions");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getAnalysisOptions();
    } finally {
      instrumentation.log();
    }
  }
View Full Code Here

    }
  }

  @Override
  public AngularApplication getAngularApplicationWithHtml(Source htmlSource) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getAngularApplication");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getAngularApplicationWithHtml(htmlSource);
    } finally {
      instrumentation.log();
    }
  }
View Full Code Here

    return basis;
  }

  @Override
  public CompilationUnitElement getCompilationUnitElement(Source unitSource, Source librarySource) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getCompilationUnitElement");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getCompilationUnitElement(unitSource, librarySource);
    } finally {
      instrumentation.log();
    }
  }
View Full Code Here

    basis.getContentsToReceiver(source, receiver);
  }

  @Override
  public InternalAnalysisContext getContextFor(Source source) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getContextFor");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getContextFor(source);
    } finally {
      instrumentation.log();
    }
  }
View Full Code Here

    return basis.getDeclaredVariables();
  }

  @Override
  public Element getElement(ElementLocation location) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getElement");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getElement(location);
    } finally {
      instrumentation.log();
    }
  }
View Full Code Here

    }
  }

  @Override
  public AnalysisErrorInfo getErrors(Source source) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getErrors");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      AnalysisErrorInfo ret = basis.getErrors(source);
      if (ret != null) {
        instrumentation.metric("Errors-count", ret.getErrors().length);
      }
      return ret;
    } finally {
      instrumentation.log();
    }
  }
View Full Code Here

TOP

Related Classes of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.