Package org.adoptopenjdk.jitwatch.chain

Examples of org.adoptopenjdk.jitwatch.chain.CompileNode


   
    MemberSignatureParts msp = MemberSignatureParts.fromLogCompilationSignature("org.adoptopenjdk.jitwatch.demo.MakeHotSpotLog " + methodName + " ()V");
   
    IMetaMember testMember = metaClass.getMemberFromSignature(msp);

    CompileNode root = buildCompileNodeForXML(lines, testMember, testModel);
   
//    private void testCallChain3()
//    {
//      long count = 0;
//      int iterations = 100_000;
//      for (int i = 0; i < iterations; i++)
//      {
//         if (test(i, iterations))
//         {
//           count = chainC1(count);
//         }
//         else
//         {
//           count = chainC2(count);
//         }
//       }
//       System.out.println("testCallChain2: " + count);
//    }
   
    // root
    // -> test()
    // -> chainC1() -> chainC2()
    //              -> chainC3()
    // -> chainC2()
    // -> java.lang.AbstractStringBuilder() -> java.lang.Object()
    // -> append()
    // -> append()
    // -> toString()
    // -> println

    List<CompileNode> rootChildren = root.getChildren();
   
    assertEquals(8, rootChildren.size());
   
    int pos = 0;
   
View Full Code Here


    MetaClass metaClass = testModel.getPackageManager().getMetaClass(fqClassName);
    IMetaMember testMember = metaClass.getMemberFromSignature(MemberSignatureParts.fromParts(fqClassName, methodName, "void", new String[] { "long" }));

    assertNotNull(testMember);
   
    CompileNode root = buildCompileNodeForXML(lines, testMember, testModel);
   
    // root
    // -> chainA1() -> chainA2() -> chainA3() -> chainA4() -> bigMethod()
    // -> chainB1() -> chainB2() -> chainB3()
    // -> append()
    // -> append()
    // -> toString()
    // -> println
    // -> java.lang.AbstractStringBuilder() -> java.lang.Object()

    List<CompileNode> rootChildren = root.getChildren();
   
    assertEquals(7, rootChildren.size());
   
    int pos = 0;
   
View Full Code Here

    MetaClass metaClass = testModel.getPackageManager().getMetaClass(fqClassName);
    IMetaMember testMember = metaClass.getMemberFromSignature(MemberSignatureParts.fromParts(fqClassName, methodName, "void", new String[] { "long" }));

    assertNotNull(testMember);
   
    CompileNode root = buildCompileNodeForXML(lines, testMember, testModel);
   
    // root
    // -> chainA1() -> chainA2() -> chainA3() -> chainA4() -> bigMethod()
    // -> chainB1() -> chainB2() -> chainB3()
    // -> append()
    // -> append()
    // -> toString()
    // -> println
    // -> java.lang.AbstractStringBuilder() -> java.lang.Object()

    List<CompileNode> rootChildren = root.getChildren();
   
    assertEquals(7, rootChildren.size());
   
    int pos = 0;
   
View Full Code Here

    Journal journal = member.getJournal();
    journal.addEntry(tag);

    CompileChainWalker walker = new CompileChainWalker(model);

    CompileNode root = walker.buildCallTree(member);

    assertNotNull(root);
   
    return root;
View Full Code Here

  {
    if (member.isCompiled())
    {
      CompileChainWalker walker = new CompileChainWalker(logParser.getModel());

      CompileNode root = walker.buildCallTree(member);

      if (root != null)
      {
        CompileChainStage ccs = new CompileChainStage(this, root);
View Full Code Here

TOP

Related Classes of org.adoptopenjdk.jitwatch.chain.CompileNode

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.