Package org.adoptopenjdk.jitwatch.model

Examples of org.adoptopenjdk.jitwatch.model.IMetaMember


        "  1.41%             0x00007f25cd19c8bb: vmovsd (%rsp),%xmm1",
        "  5.43%             0x00007f25cd19c8c0: add    $0x8,%rsp          ;*invokestatic log" };
   
    performAssemblyParsingOn(lines);

    IMetaMember member = map.get("org.openjdk.jmh.samples.generated.JMHSample_08_DeadCode_measureRight measureRight_avgt_jmhLoop (Lorg.openjdk.jmh.runner.InfraControl;Lorg.openjdk.jmh.results.RawResults;Lorg.openjdk.jmh.samples.generated.JMHSample_08_DeadCode_measureRight$JMHSample_08_DeadCode_1_jmh;Lorg.openjdk.jmh.samples.generated.JMHSample_08_DeadCode_measureRight$Blackhole_1_jmh;)V");
    assertNotNull(member);

    AssemblyMethod assemblyMethod = member.getAssembly();

    assertNotNull(assemblyMethod);
   
    assertEquals(19, assemblyMethod.getMaxAnnotationWidth());
   
View Full Code Here


        "<nmethod compile_id='1' compiler='C1' level='3' entry='0x00007fb5ad0fe420' size='2504' address='0x00007fb5ad0fe290' relocation_offset='288'/>",
        "<writer thread='140418643298048'/>" };
   
    performAssemblyParsingOn(lines);

    IMetaMember member = map.get("org.adoptopenjdk.jitwatch.demo.SandboxTestLoad main ([Ljava.lang.String;)V");

    assertNotNull(member);

    AssemblyMethod assemblyMethod = member.getAssembly();

    assertNotNull(assemblyMethod);

    List<AssemblyBlock> asmBlocks = assemblyMethod.getBlocks();
View Full Code Here

        "  0x00007f1eaad25eac: hlt    "
    };
   
    performAssemblyParsingOn(lines);

    IMetaMember member = map.get("SandboxTest add (II)I");

    assertNotNull(member);

    AssemblyMethod assemblyMethod = member.getAssembly();

    assertNotNull(assemblyMethod);

    List<AssemblyBlock> asmBlocks = assemblyMethod.getBlocks();
View Full Code Here

      @Override
      public void handle(MouseEvent e)
      {
        if (e.getButton() == MouseButton.SECONDARY)
        {
          IMetaMember selectedMember = memberList.getSelectionModel().getSelectedItem();

          if (selectedMember.isCompiled())
          {
            contextMenuCompiled.show(memberList, e.getScreenX(), e.getScreenY());
          }
          else
          {
View Full Code Here

    return new EventHandler<ActionEvent>()
    {
      @Override
      public void handle(ActionEvent e)
      {
        IMetaMember member = memberList.getSelectionModel().getSelectedItem();

        Journal journal = member.getJournal();

        parent.openJournalViewer("JIT Journal for " + member.toString(), journal);
      }
    };
  }
View Full Code Here

    return new EventHandler<ActionEvent>()
    {
      @Override
      public void handle(ActionEvent e)
      {
        IMetaMember member = memberList.getSelectionModel().getSelectedItem();

        Journal journal = member.getJournal();

        String intrinsicsUsed = processIntrinsicsUsing(journal);

        parent.openTextViewer("Intrinsics used by " + member.toString(), intrinsicsUsed);
      }
    };
  }
View Full Code Here

  {
    memberList.getSelectionModel().clearSelection();

    for (int i = 0; i < memberList.getItems().size(); i++)
    {
      IMetaMember member = memberList.getItems().get(i);

      if (member.toString().equals(selected.toString()))
      {
        memberList.getSelectionModel().select(i);

        memberList.getFocusModel().focus(i);
View Full Code Here

    }
  }

  private String getLabelText(CompileNode node)
  {
    IMetaMember member = node.getMember();

    return member == null ? "Unknown" : member.getMemberName();
  }
View Full Code Here

      double lastCX = graphGapLeft + normaliseX(minX);
      double lastCY = graphGapTop + normaliseY(0);

      drawAxes();

      IMetaMember selectedMember = parent.getSelectedMember();

      double compiledStampTime = -1;

      if (selectedMember != null)
      {
        // last compile stamp write wins - plot all?
        String cStamp = selectedMember.getCompiledAttribute("stamp");

        if (cStamp != null)
        {
          compiledStampTime = ParseUtil.parseStamp(cStamp);
        }
      }

      Color colourMarker = Color.BLUE;

      gc.setFill(colourMarker);
      gc.setStroke(colourMarker);

      int cumC = 0;
      int markerDiameter = 10;

      for (JITEvent event : events)
      {
        if (event.getEventType() != EventType.QUEUE)
        {
          long stamp = event.getStamp();

          cumC++;

          double x = graphGapLeft + normaliseX(stamp);
          double y = graphGapTop + normaliseY(cumC);

          gc.setLineWidth(2);
          gc.strokeLine(fix(lastCX), fix(lastCY), fix(x), fix(y));
          gc.setLineWidth(1);

          lastCX = x;
          lastCY = y;

          if (compiledStampTime != -1 && stamp > compiledStampTime)
          {
            double smX = graphGapLeft + normaliseX(compiledStampTime);
           
            double blobX = fix(smX - markerDiameter / 2);
            double blobY = fix(y - markerDiameter / 2);

            gc.fillOval(blobX, blobY, fix(markerDiameter),
                fix(markerDiameter));

            StringBuilder selectedItemBuilder = new StringBuilder();

            selectedItemBuilder.append(selectedMember.toStringUnqualifiedMethodName(false));

            String compiler = selectedMember.getCompiledAttribute(ATTR_COMPILER);

            if (compiler == null)
            {
              compiler = selectedMember.getCompiledAttribute(ATTR_COMPILE_KIND);

              if (compiler == null)
              {
                compiler = "unknown!";
              }
            }

            selectedItemBuilder.append(" compiled at ")
                .append(StringUtil.formatTimestamp((long) compiledStampTime, true)).append(" by ").append(compiler);

            String compiletime = selectedMember.getCompiledAttribute("compileMillis");

            if (compiletime != null)
            {
              selectedItemBuilder.append(" in ").append(compiletime).append("ms");
            }
View Full Code Here

  private void showTriView(String language, String openClassInTriView)
  {
    IReadOnlyJITDataModel model = logParser.getModel();

    IMetaMember triViewMember = getMemberForClass(openClassInTriView, model);

    if (triViewMember == null && VM_LANGUAGE_SCALA.equals(language) && openClassInTriView.endsWith(S_DOLLAR))
    {
      // Scala and nothing found for Foo$ so try Foo
      triViewMember = getMemberForClass(openClassInTriView.substring(0, openClassInTriView.length() - 1), model);
View Full Code Here

TOP

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

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.