Examples of GraphReference


Examples of org.jboss.profiler.graphmodel.GraphReference

            referenceKey.setLevelCallee(level - 1);
            referenceKey.setLevelCalled(level);
            referenceKey.setMethodCalled(subConsolidacao.getSpyMethod()
                    .getMethodID());
            if (hashCallings.get(referenceKey) == null) {
                GraphReference ref = new GraphReference(level - 1,
                        methodIdCallee, level, subConsolidacao.getSpyMethod()
                                .getMethodID(), ((double) subConsolidacao
                                .getTotalElapsedClock() / (double) rootMethod
                                .getTotalElapsedClock())
                                * (double) 100, (double) subConsolidacao
View Full Code Here

Examples of org.jboss.profiler.graphmodel.GraphReference

      GraphMethod key = new GraphMethod();

      iter = callings.getReferences().iterator();
      while (iter.hasNext()) {
        GraphReference referenceCalling = (GraphReference) iter.next();

        key.setMethodId(referenceCalling.getMethodCallee());
        key.setLevel(referenceCalling.getLevelCallee());
        DefaultGraphCell cellcallee =
          (DefaultGraphCell) hashMethods.get(key);

        key.setMethodId(referenceCalling.getMethodCalled());
        key.setLevel(referenceCalling.getLevelCalled());
        DefaultGraphCell cellcalled =
          (DefaultGraphCell) hashMethods.get(key);

                if (cellcallee!=null && cellcalled!=null) {
          DefaultEdge relationship =
            new DefaultEdge(
              numberFormat.format(
                referenceCalling.getPercentageCPU())
                + "%");
          elements[currentElement++] = relationship;

          intersectionSet.connect(
            relationship,
View Full Code Here

Examples of org.jboss.profiler.graphmodel.GraphReference

      GraphMethod key = new GraphMethod();

      iter = callings.getReferences().iterator();
      while (iter.hasNext()) {
        GraphReference referenceCalling = (GraphReference) iter.next();

        key.setMethodId(referenceCalling.getMethodCallee());
        key.setLevel(referenceCalling.getLevelCallee());
        DefaultGraphCell cellcallee =
          (DefaultGraphCell) hashMethods.get(key);

        key.setMethodId(referenceCalling.getMethodCalled());
        key.setLevel(referenceCalling.getLevelCalled());
        DefaultGraphCell cellcalled =
          (DefaultGraphCell) hashMethods.get(key);

        DefaultEdge relationship =
          new DefaultEdge(
            numberFormat.format(
              referenceCalling.getInstancesCreated())
              + " instances");
        elements[currentElement++] = relationship;

                if (cellcallee!=null && cellcalled!=null) {
          intersectionSet.connect(
            relationship,
            cellcallee.getChildAt(0),
            cellcalled.getChildAt(1));

          attributes.put(relationship, simpleArrow);
                } else {
          if (cellcallee==null) System.out.println("Callee id=" + referenceCalling.getMethodCallee());
          if (cellcalled==null) System.out.println("Called id=" + referenceCalling.getMethodCalled());
                }

      }

      graphModel.insert(
View Full Code Here

Examples of org.jboss.profiler.graphmodel.GraphReference

        HashMap hashMethods = new HashMap();
        HashMap hashCallings = new HashMap();
        GraphCallings graph = new GraphCallings();

        // para ajudar na referencia entre chamadas
        GraphReference referenceKey = new GraphReference();

        int numberOfPaths = path.length;

        long oldMethod = 0;

        int level = 0;
        // root
        if (numberOfPaths == 0) {
            oldMethod = consolidacao.getSpyMethod().getMethodID();
            GraphMethod newMethod = new GraphMethod((JBPMethod) spyMethods
                    .get(consolidacao.getSpyMethod()), level++, createURL(
                    rootMethod, null, null));
            hashMethods.put(newMethod, newMethod);
        }

        GraphMethod methodKey = new GraphMethod();

        for (int i = 0; i < numberOfPaths; i++) {
            consolidacao = consolidacao.getCalledCount(path[i]);

            if (i >= (numberOfPaths - 1)) {
                methodKey.setMethodId(path[i].getMethodID());
                methodKey.setLevel(level++);

                //Long methodKey = new Long(path[i].getMethodID());
                GraphMethod calledGraphMethod = (GraphMethod) hashMethods
                        .get(methodKey);

                if (calledGraphMethod == null) {
                    calledGraphMethod = new GraphMethod((JBPMethod) spyMethods
                            .get(path[i]), level++, createURL(rootMethod,
                            stack, path[i]));
                    hashMethods.put(calledGraphMethod, calledGraphMethod);
                }

                if (oldMethod != 0) {
                    referenceKey.setMethodCallee(oldMethod);
                    referenceKey.setMethodCalled(path[i].getMethodID());
                    if (hashCallings.get(referenceKey) == null) {
                        double percenptual = (double) consolidacao
                                .getTotalElapsedClock()
                                / (double) rootMethod.getTotalElapsedClock()
                                * (double) 100;
                        GraphReference ref = new GraphReference(level - 1,
                                oldMethod, level, path[i].getMethodID(),
                                percenptual, (double) consolidacao
                                        .getTotalClocks()
                                        / (double) rootMethod.getTotalClock()
                                        * (double) 100);
View Full Code Here

Examples of org.jboss.profiler.graphmodel.GraphReference

        HashMap hashMethods = new HashMap();
        HashMap hashCallings = new HashMap();
        GraphCallings graph = new GraphCallings();

        // para ajudar na referencia entre chamadas
        GraphReference referenceKey = new GraphReference();


        long oldMethod = 0;

        int level = 0;
View Full Code Here

Examples of org.jboss.profiler.graphmodel.GraphReference

            referenceKey.setLevelCallee(level - 1);
            referenceKey.setLevelCalled(level);
            referenceKey.setMethodCalled(subConsolidacao.getSpyMethod()
                    .getMethodID());
            if (hashCallings.get(referenceKey) == null) {
                GraphReference ref = new GraphReference(level - 1,
                        methodIdCallee, level, subConsolidacao.getSpyMethod()
                                .getMethodID(), ((double) subConsolidacao
                                .getTotalElapsedClock() / (double) rootMethod
                                .getTotalElapsedClock())
                                * (double) 100, (double) subConsolidacao
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.