Examples of metric()


Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

  @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

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

  @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

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

  @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

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

  @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

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

  @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;
View Full Code Here

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

    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

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

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

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

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

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      Source[] ret = basis.getHtmlFilesReferencing(source);
      if (ret != null) {
        instrumentation.metric("Source-count", ret.length);
      }
      return ret;
    } finally {
      instrumentation.log();
    }
View Full Code Here

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder.metric()

  @Override
  public Source[] getHtmlSources() {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getHtmlSources");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      Source[] ret = basis.getHtmlSources();
      if (ret != null) {
        instrumentation.metric("Source-count", ret.length);
      }
      return ret;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.