Package org.adoptopenjdk.jitwatch.model

Examples of org.adoptopenjdk.jitwatch.model.Task


    Tag t;

    if (JITWatchConstants.TAG_TASK.equals(name))
    {
      t = new Task(name, attrs, selfClosing, currentCompiler);
    }
    else
    {
      t = new Tag(name, attrs, selfClosing);
    }
View Full Code Here


  {
    Map<String, String> result = new HashMap<>();

    if (journal != null)
    {
      Task lastTaskTag = JournalUtil.getLastTask(journal);

      if (lastTaskTag != null)
      {
        IParseDictionary parseDictionary = lastTaskTag.getParseDictionary();

        Tag parsePhase = JournalUtil.getParsePhase(journal);

        if (parsePhase != null)
        {
View Full Code Here

  public static Task getLastTask(Journal journal)
  {
    // find the latest task tag
    // this is the most recent compile task for the member
    Task lastTask = null;

    for (Tag tag : journal.getEntryList())
    {
      if (tag instanceof Task)
      {
View Full Code Here

    return sane;
  }

  public static CompilerName getLastTaskCompiler(Journal journal)
  {
    Task lastTask = getLastTask(journal);

    CompilerName compilerName = null;

    if (lastTask != null)
    {
      compilerName = lastTask.getCompiler();
    }

    return compilerName;
  }
View Full Code Here

  public static Tag getParsePhase(Journal journal)
  {
    Tag parsePhase = null;

    Task lastTask = getLastTask(journal);

    if (lastTask != null)
    {
      CompilerName compilerName = lastTask.getCompiler();

      String parseAttributeName = ATTR_PARSE;

      if (compilerName == CompilerName.C1)
      {
        parseAttributeName = ATTR_BUILDIR;
      }

      List<Tag> parsePhases = lastTask.getNamedChildrenWithAttribute(TAG_PHASE, ATTR_NAME, parseAttributeName);

      int count = parsePhases.size();

      if (count != 1)
      {
View Full Code Here

TOP

Related Classes of org.adoptopenjdk.jitwatch.model.Task

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.