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

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


    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getLibraryElement(source);
    } finally {
      instrumentation.log();
    }
  }

  @Override
  public Source[] getLibrarySources() {
View Full Code Here


      if (ret != null) {
        instrumentation.metric("Source-count", ret.length);
      }
      return ret;
    } finally {
      instrumentation.log();
    }
  }

  @Override
  public LineInfo getLineInfo(Source source) {
View Full Code Here

    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getLineInfo(source);
    } finally {
      instrumentation.log();
    }
  }

  @Override
  public long getModificationStamp(Source source) {
View Full Code Here

    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getModificationStamp(source);
    } finally {
      instrumentation.log();
    }
  }

  @Override
  public Source[] getPrioritySources() {
View Full Code Here

    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getPrioritySources();
    } finally {
      instrumentation.log();
    }
  }

  @Override
  public Namespace getPublicNamespace(LibraryElement library) {
View Full Code Here

    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getRefactoringUnsafeSources();
    } finally {
      instrumentation.log();
    }
  }

  @Override
  public CompilationUnit getResolvedCompilationUnit(Source unitSource, LibraryElement library) {
View Full Code Here

    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getResolvedCompilationUnit(unitSource, library);
    } finally {
      instrumentation.log();
    }
  }

  @Override
  public CompilationUnit getResolvedCompilationUnit(Source unitSource, Source librarySource) {
View Full Code Here

    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getResolvedCompilationUnit(unitSource, librarySource);
    } finally {
      instrumentation.log(2); //Log if over 1ms
    }
  }

  @Override
  public HtmlUnit getResolvedHtmlUnit(Source htmlSource) {
View Full Code Here

    checkThread(instrumentation);
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getResolvedHtmlUnit(htmlSource);
    } finally {
      instrumentation.log(2); //Log if over 1ms
    }
  }

  @Override
  public SourceFactory getSourceFactory() {
View Full Code Here

    InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getSourceFactory");
    try {
      instrumentation.metric("contextId", contextId);
      return basis.getSourceFactory();
    } finally {
      instrumentation.log(2); //Log if over 1ms
    }
  }

  @Override
  public AnalysisContextStatistics getStatistics() {
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.