Package org.jboss.profiler.model

Examples of org.jboss.profiler.model.JBPGenericCount


        TreeSet setRoots = new TreeSet(new SPYMethodCountComparator());
        HashMap roots = spyProcess.consolidateRoots();
        Iterator iterRoots = roots.values().iterator();

        while (iterRoots.hasNext()) {
            JBPGenericCount rootInstance = (JBPGenericCount) iterRoots.next();
            JBPMethod methodOnProcess = (JBPMethod) spyProcess.getSpyMethods()
                    .get(rootInstance.getReferencedObject());
            JBPGenericCount rootConsolidado = spyProcess
                    .consolidaCallings(methodOnProcess);
            setRoots.add(rootConsolidado);
        }

        return setRoots;
View Full Code Here


        ArrayList listCounts = new ArrayList();

        Iterator iterMethods = jbpClass.getSpyMethods().values().iterator();
        while (iterMethods.hasNext()) {
            JBPMethod method = (JBPMethod)iterMethods.next();
            JBPGenericCount consolidation = process.consolidaCallings(method);
            listCounts.add(consolidation);
        }
        return listCounts;
    }
View Full Code Here

        // para ordenar pelo maior tempo
        setMemory = new TreeSet(new Comparator() {
            public int compare(Object o1, Object o2) {
                JBPMemoryCount s1 = (JBPMemoryCount) o1;
                JBPGenericCount s2 = (JBPGenericCount) o2;
                int x = s2.getCount() - s1.getCount();
                if (x != 0) {
                    return x;
                } else if (((JBPClass) s1.getReferencedObject()).getName() != null
                        && ((JBPClass) s2.getReferencedObject()).getName() != null) {
                    return ((JBPClass) s1.getReferencedObject()).getName()
                            .compareTo(
                                    ((JBPClass) s2.getReferencedObject())
                                            .getName());
                } else {
                    return ((JBPClass) s1.getReferencedObject()).getClassID()
                            - ((JBPClass) s2.getReferencedObject())
                                    .getClassID();
                }
            }
        });
View Full Code Here

TOP

Related Classes of org.jboss.profiler.model.JBPGenericCount

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.