Package org.adoptopenjdk.jitwatch.model

Examples of org.adoptopenjdk.jitwatch.model.Tag


    tp.setCompiler(compiler);

    int count = 0;

    Tag tag = null;

    for (String line : logLines)
    {
      line = line.replace("<", S_OPEN_ANGLE);
      line = line.replace(">", S_CLOSE_ANGLE);
View Full Code Here


      }
    });

    if (codeCacheTags.size() > 0)
    {
      Tag firstTag = codeCacheTags.get(0);
      Tag lastTag = codeCacheTags.get(codeCacheTags.size() - 1);

      minX = getStampFromTag(firstTag);
      maxX = getStampFromTag(lastTag);

      minY = getFreeCodeCacheFromTag(firstTag);
View Full Code Here

  public static IMetaMember lookupMember(String methodId, IParseDictionary parseDictionary, IReadOnlyJITDataModel model)
  {
    IMetaMember result = null;

    Tag methodTag = parseDictionary.getMethod(methodId);

    if (methodTag != null)
    {
      String methodName = methodTag.getAttribute(ATTR_NAME);

      String klassId = methodTag.getAttribute(ATTR_HOLDER);

      Tag klassTag = parseDictionary.getKlass(klassId);

      String metaClassName = klassTag.getAttribute(ATTR_NAME);

      metaClassName = metaClassName.replace(S_SLASH, S_DOT);

      String returnTypeId = methodTag.getAttribute(ATTR_RETURN);
View Full Code Here

  {
    String result = null;

    if (typeOrKlassID != null)
    {
      Tag typeTag = parseDictionary.getType(typeOrKlassID);

      if (typeTag == null)
      {
        typeTag = parseDictionary.getKlass(typeOrKlassID);
      }

      if (typeTag != null)
      {
        result = typeTag.getAttribute(ATTR_NAME).replace(S_SLASH, S_DOT);

        result = ParseUtil.expandParameterType(result);
      }
    }
View Full Code Here

    if (journal != null)
    {
      CompilerName compilerName = getLastTaskCompiler(journal);

      Tag parsePhase = getParsePhase(journal);

      if (parsePhase != null)
      {
        List<Tag> parseTags = parsePhase.getNamedChildren(TAG_PARSE);

        for (Tag parseTag : parseTags)
        {
          buildParseTagAnnotations(parseTag, result, instructions, compilerName);
        }
View Full Code Here

    return compilerName;
  }

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

    Task lastTask = getLastTask(journal);

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

  public void testSingleLine()
  {
    TagProcessor tp = new TagProcessor();

    String line = "<klass id='632' name='java/lang/String' flags='17'/>";
    Tag tag = tp.processLine(line);

    assertEquals("klass", tag.getName());

    assertEquals(3, tag.getAttrs().size());

    assertEquals("632", tag.getAttribute("id"));

    assertEquals("java/lang/String", tag.getAttribute("name"));

    assertEquals("17", tag.getAttribute("flags"));
  }
View Full Code Here

    String line1 = "<loop idx='1012' inner_loop='1' >";
    String line2 = "</loop>";

    TagProcessor tp = new TagProcessor();

    Tag tag = tp.processLine(line1);

    assertNull(tag);

    tag = tp.processLine(line2);

    assertEquals("loop", tag.getName());

    assertEquals(2, tag.getAttrs().size());

    assertEquals("1012", tag.getAttribute("idx"));

    assertEquals("1", tag.getAttribute("inner_loop"));
  }
View Full Code Here

    TagProcessor tp = new TagProcessor();

    int count = 0;

    Tag tag = null;

    for (String line : lines)
    {
      tag = tp.processLine(line);
      if (count++ < lines.length - 1)
      {
        assertNull(tag);
      }
    }

    assertNotNull(tag);
    assertEquals("phase", tag.getName());
    assertEquals(2, tag.getChildren().size());

    Tag child0 = tag.getChildren().get(0);
    assertEquals("loop_tree", child0.getName());
    assertEquals(0, child0.getAttrs().size());
    assertEquals(2, child0.getChildren().size());

    Tag child01 = child0.getChildren().get(0);
    assertEquals("loop", child01.getName());
    assertEquals("1124", child01.getAttribute("idx"));

    Tag child02 = child0.getChildren().get(1);
    assertEquals("loop", child02.getName());
    assertEquals("1012", child02.getAttribute("idx"));
    assertEquals("1", child02.getAttribute("inner_loop"));

    Tag child1 = tag.getChildren().get(1);
    assertEquals("phase_done", child1.getName());
    assertEquals(2, child1.getAttrs().size());
    assertEquals(0, child1.getChildren().size());
    assertEquals("1144", child1.getAttribute("nodes"));
    assertEquals("14.151", child1.getAttribute("stamp"));
  }
View Full Code Here

    TagProcessor tp = new TagProcessor();

    int count = 0;

    Tag tag = null;

    for (String line : lines)
    {
      tag = tp.processLine(line);
      if (count++ < lines.length - 1)
      {
        assertNull(tag);
      }
    }

    assertNotNull(tag);

    assertEquals(7, tag.getAttrs().size());
    assertEquals("java/util/Properties loadConvert ([CII[C)Ljava/lang/String;", tag.getAttribute("method"));
  }
View Full Code Here

TOP

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

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.