Package org.adoptopenjdk.jitwatch.core

Examples of org.adoptopenjdk.jitwatch.core.TagProcessor


    assertEquals("java.lang.AbstractStringBuilder", rootChildren.get(pos++).getMember().getMemberName());
  }
 
  private CompileNode buildCompileNodeForXML(String[] lines, IMetaMember member, JITDataModel model)
  {
    TagProcessor tp = new TagProcessor();

    int count = 0;

    Tag tag = null;

    for (String line : lines)
    {   
      line = line.trim();
      line = line.replace(S_ENTITY_LT, S_OPEN_ANGLE);
      line = line.replace(S_ENTITY_GT, S_CLOSE_ANGLE);

      tag = tp.processLine(line);

      if (count++ < lines.length - 1)
      {
        assertNull(tag);
      }
View Full Code Here


        "<phase_done name='parse' nodes='390' live='281' stamp='597.035'/>",
        "</phase>",
        "<code_cache total_blobs='3752' nmethods='3051' adapters='652' free_code_cache='40367872' largest_free_block='40161088'/>",
        "<task_done success='1' nmsize='632' count='4078' backedge_count='5353' stamp='597.038'/>", "</task>" };

    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);
      }
    }
View Full Code Here

        "<phase_done name='output' nodes='2701' live='2260' stamp='22.559'/>",
        "</phase>",
        "<code_cache total_blobs='2037' nmethods='1386' adapters='603' free_code_cache='45737472' largest_free_block='45650432'/>",
        "<task_done success='1' nmsize='5136' count='5000' backedge_count='5045' stamp='22.559'/>", "</task>" };

    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);
      }
    }
View Full Code Here

    checkLine(result, 53, "Inlined: Yes", Color.GREEN);
  }
   
  private Map<Integer, LineAnnotation> buildAnnotations(CompilerName compiler, String[] logLines, String[] bytecodeLines)
  { 
    TagProcessor tp = new TagProcessor();

    tp.setCompiler(compiler);

    int count = 0;

    Tag tag = null;

    for (String line : logLines)
    {
      line = line.replace("&lt;", S_OPEN_ANGLE);
      line = line.replace("&gt;", S_CLOSE_ANGLE);
     
      tag = tp.processLine(line);

      if (count++ < logLines.length - 1)
      {
        assertNull(tag);
      }
View Full Code Here

public class TestTagProcessor
{
  @Test
  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());
View Full Code Here

  public void testSingleTag2Lines()
  {
    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());
View Full Code Here

    String line8 = "<phase_done nodes='1144' stamp='14.151'/>";
    String line9 = "</phase>";

    String[] lines = new String[] { line1, line2, line3, line4, line5, line6, line7, line8, line9 };

    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);
      }
    }
View Full Code Here

    String line2 = "<task_done success='1' nmsize='3160' count='10000' backedge_count='5723' stamp='6.744'/>";
    String line3 = "</task>";

    String[] lines = new String[] { line1, line2, line3 };

    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);
      }
    }
View Full Code Here

    String line4 = "<b foo='bar'/>";
    String line5 = "</a>";

    String[] lines = new String[] { line1, line2, line3, line4, line5 };

    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);
      }
    }
View Full Code Here

    String line9 = "</info>";
    String line10 = "</vm_version>";

    String[] lines = new String[] { line0, line1, line2, line3, line4, line5, line6, line7, line8, line9, line10 };

    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);
      }
View Full Code Here

TOP

Related Classes of org.adoptopenjdk.jitwatch.core.TagProcessor

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.