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

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


      return basis.computeHtmlElement(source);
    } catch (AnalysisException e) {
      recordAnalysisException(instrumentation, e);
      throw e;
    } finally {
      instrumentation.log();
    }

  }

  @Override
View Full Code Here


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

  @Override
  public LibraryElement computeLibraryElement(Source source) throws AnalysisException {
View Full Code Here

      return basis.computeLibraryElement(source);
    } catch (AnalysisException e) {
      recordAnalysisException(instrumentation, e);
      throw e;
    } finally {
      instrumentation.log();
    }
  }

  @Override
  public LineInfo computeLineInfo(Source source) throws AnalysisException {
View Full Code Here

      } else {
        instrumentation.data("sdkPath", "--unknown--");
      }
      instrumentation.data("coreLibraryPath", coreLibrarySource.getFullName());
    } finally {
      instrumentation.log();
    }
    throw new AnalysisException("Could not resolve dart:core");
  }

  /**
 
View Full Code Here

            lib.getCompilationUnitSources().length);
      }

      return targetLibrary.getLibraryElement();
    } finally {
      instrumentation.log();
    }
  }

  /**
   * Build the element model representing the combinators declared by the given directive.
View Full Code Here

      //}
      performConstantEvaluation();
      instrumentation.metric("performConstantEvaluation", "complete");
      return targetLibrary.getLibraryElement();
    } finally {
      instrumentation.log();
    }
  }

  /**
   * Resolve the library specified by the given source in the given context.
View Full Code Here

            lib.getCompilationUnitSources().size());
      }

      return targetLibrary.getLibraryElement();
    } finally {
      instrumentation.log(15); //Log if >= than 15ms
    }
  }

  /**
   * Create an object to represent the information about the library defined by the compilation unit
View Full Code Here

      }
      appendEofToken();
      instrumentation.metric("tokensCount", tokenCounter);
      return getFirstToken();
    } finally {
      instrumentation.log(2); //Log if over 1ms
    }
  }

  /**
   * Append the given token to the end of the token stream being scanned. This method is intended to
View Full Code Here

    InstrumentationBuilder instrumentation = Instrumentation.builder("dart.engine.Parser.parseCompilationUnit");
    try {
      currentToken = token;
      return parseCompilationUnit();
    } finally {
      instrumentation.log(2); //Record if >= 2ms
    }
  }

  /**
   * Parse the script tag and directives in a compilation unit, starting with the given token, until
View Full Code Here

    InstrumentationBuilder instrumentation = Instrumentation.builder("dart.engine.Parser.parseDirectives");
    try {
      currentToken = token;
      return parseDirectives();
    } finally {
      instrumentation.log(2); //Record if >= 2ms
    }
  }

  /**
   * Parse an expression, starting with the given token.
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.