Package org.jboss.profiler.model

Examples of org.jboss.profiler.model.JBPClass


    try {
      response.setContentType(CONTENT_TYPE);
      response.setHeader("pragma", "no-cache");

      JBPMethod keyMethod = new JBPMethod();
      JBPClass keyClass = new JBPClass();

      javax.servlet.http.HttpSession session = request.getSession();

      org.jboss.profiler.web.form.FilterForm beanFilter =
        (org.jboss.profiler.web.form.FilterForm) request
          .getSession()
          .getAttribute("filterForm");

      org.jboss.profiler.model.JBPProcess spyProcess =
        beanFilter.getJbpProcess();

      int classId = Integer.parseInt(request.getParameter("classId"));
      keyClass.setClassID(classId);
      JBPClass spyClass =
        (JBPClass) spyProcess.getSpyClasses().get(keyClass);

      HashMap spyMethods = spyProcess.getSpyMethods();
      JBPMethod spyMethodProcess = (JBPMethod) spyMethods.get(keyMethod);
View Full Code Here


    public static void generateXML(String className, PrintStream out, JBPProcess process,
            double minPercent, int maxLevel, boolean printMemory,
            boolean memoryLeaks, java.text.NumberFormat numberFormat) {

        JBPClass jbpClass = process.findClassByName(className);

        if (jbpClass!=null) {

            ArrayList listCounts = aggregateMethods(process, jbpClass);
View Full Code Here

        out.println("<memory>");

        Iterator iter = setMemory.iterator();
        while (iter.hasNext()) {
            JBPMemoryCount iterCount = (JBPMemoryCount) iter.next();
            JBPClass spyClass = (JBPClass) iterCount.getReferencedObject();
            for (int i = 0; i <= level; i++) {
                out.print(IDENT_ON_LEVEL);
            }
            out.println("<memoryItem instanceOf=\"" + spyClass.getName()
                    + "\" instances=\"" + iterCount.getCount() + "\" bytes=\""
                    + iterCount.getSize() + "\"" + " releasedInstances=\""
                    + iterCount.getCountRelease() + "\" releasedBytes=\""
                    + iterCount.getReleasedSize() + "\"/>");
View Full Code Here

        Iterator iter = spyProcess.getSpyObjectTreeByClass().keySet()
                .iterator();

        while (iter.hasNext()) {
            JBPClass spyClass = (JBPClass) iter.next();
            printLevel(out, 2);
            out.println("<memoryInstance className=\"" + spyClass.getName()
                    + "\">");
            Collection listMethods = (Collection) spyProcess
                    .findMemoryLeaks(spyClass);

            Iterator iterMethods = listMethods.iterator();
View Full Code Here

        summary.setNumberOfCallings(jbpMethod.getNumberOfCalls());
    }

    private void generateGraphs(StandaloneProcess standalone, String baseFileName, String[] classesArray, String pid) throws IOException {
        for (int clazzCount=0;clazzCount<classesArray.length;clazzCount++) {
            JBPClass jbpClass = null;
            try {
                jbpClass = standalone.getEngine().getProcess().findClassByName(classesArray[clazzCount]);
            }
            catch (Exception e) {
                continue;
            }
            if (jbpClass==null) {
                continue;
            }
            Iterator methods = jbpClass.getSpyMethods().values().iterator();
            int count=0;
            while (methods.hasNext()) {
                JBPMethod jbpMethod = (JBPMethod)methods.next();

                GraphCallings graph = GraphGenerator.generateCallings(standalone.getEngine().getProcess(),jbpMethod);
View Full Code Here

TOP

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

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.