Examples of metric()


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

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

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

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

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

  @Override
  public Source[] getLibrarySources() {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getLibrarySources");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      Source[] ret = basis.getLibrarySources();
      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.getLibrarySources();
      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 LineInfo getLineInfo(Source source) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getLineInfo");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getLineInfo(source);
    } finally {
      instrumentation.log();
    }
  }
View Full Code Here

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

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

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

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

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

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

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

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

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

  @Override
  public CompilationUnit getResolvedCompilationUnit(Source unitSource, Source librarySource) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getResolvedCompilationUnit");
    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getResolvedCompilationUnit(unitSource, librarySource);
    } finally {
      instrumentation.log(2); //Log if over 1ms
    }
  }
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.