Package org.wicketstuff.pageserializer.common.analyze.report.io

Examples of org.wicketstuff.pageserializer.common.analyze.report.io.DirectoryBasedReportOutput


        }
        return null;
      }
    };
   
    DirectoryBasedReportOutput reportOutput=new DirectoryBasedReportOutput(tempDirectory("reports"));
   
    ISerializedObjectTreeProcessor treeProcessor = TreeProcessors.listOf(new TypeSizeReport(reportOutput.with(Keys.withNameAndFileExtension("TypeSizeReport", "txt"))),
        new SortedTreeSizeReport(reportOutput.with(Keys.withNameAndFileExtension("SortedTreeSizeReport", "txt"))),
        new RenderTreeProcessor(reportOutput.with(Keys.withNameAndFileExtension("d3js-chart", "html")),new D3DataFileRenderer()),
        new SimilarNodeTreeTransformator(new SortedTreeSizeReport(reportOutput.with(Keys.withNameAndFileExtension("StrippedSortedTreeSizeReport", "txt")))));
    ITreeFilter filter = new ITreeFilter()
    {
      @Override
      public boolean accept(ISerializedObjectTree source, Level current)
      {
View Full Code Here


        }
        return null;
      }
    };

    DirectoryBasedReportOutput reportOutput = new DirectoryBasedReportOutput(
        tempDirectory("reports"));

    ISerializedObjectTreeProcessor treeProcessor = TreeProcessors.listOf(
        new TypeSizeReport(reportOutput.with(Keys.withNameAndFileExtension(
            "TypeSizeReport", "txt"))),
        new SortedTreeSizeReport(reportOutput.with(Keys.withNameAndFileExtension(
            "SortedTreeSizeReport", "txt"))),
        new RenderTreeProcessor(reportOutput.with(Keys.withNameAndFileExtension(
            "d3js-chart", "html")), new D3DataFileRenderer()),
        new SimilarNodeTreeTransformator(new SortedTreeSizeReport(reportOutput.with(Keys
            .withNameAndFileExtension("StrippedSortedTreeSizeReport", "txt")))));
    ITreeFilter filter = new ITreeFilter()
    {
      @Override
      public boolean accept(ISerializedObjectTree source, Level current)
View Full Code Here

        }
        return null;
      }
    };

    DirectoryBasedReportOutput reportOutput = new DirectoryBasedReportOutput(
        tempDirectory("reports"));

    ISerializedObjectTreeProcessor treeProcessor = TreeProcessors.listOf(
        new TypeSizeReport(reportOutput.with(Keys.withNameAndFileExtension(
            "TypeSizeReport", "txt"))),
        new SortedTreeSizeReport(reportOutput.with(Keys.withNameAndFileExtension(
            "SortedTreeSizeReport", "txt"))),
        new RenderTreeProcessor(reportOutput.with(Keys.withNameAndFileExtension(
            "d3js-chart", "html")), new D3DataFileRenderer()),
        new SimilarNodeTreeTransformator(new SortedTreeSizeReport(reportOutput.with(Keys
            .withNameAndFileExtension("StrippedSortedTreeSizeReport", "txt")))));
    ITreeFilter filter = new ITreeFilter()
    {
      @Override
      public boolean accept(ISerializedObjectTree source, Level current)
View Full Code Here

    super.init();
   
      File outputDirectory = tempDirectory("kryo2-reports");
      System.out.println("Reports in: "+outputDirectory);

      DirectoryBasedReportOutput output = new DirectoryBasedReportOutput(outputDirectory);
     
      // output of report of type sizes, sorted tree report (by size), aggregated tree
      ISerializedObjectTreeProcessor typeAndSortedTreeAndCollapsedSortedTreeProcessors = TreeProcessors.listOf(
        new TypeSizeReport(output.with(Keys.withNameAndFileExtension("typesize", "txt"))),
        new SortedTreeSizeReport(output.with(Keys.withNameAndFileExtension("treesize", "txt"))),
        new SimilarNodeTreeTransformator(new SortedTreeSizeReport(output.with(Keys.withNameAndFileExtension("sorted-treesize", "txt")))),
        new RenderTreeProcessor(output.with(Keys.withNameAndFileExtension("d3js-chart", "html")),new D3DataFileRenderer()));

      // strips class object writes from tree
      TreeTransformator treeProcessors = new TreeTransformator(
        typeAndSortedTreeAndCollapsedSortedTreeProcessors,
        TreeTransformator.strip(new TypeFilter(Class.class)));
View Full Code Here

TOP

Related Classes of org.wicketstuff.pageserializer.common.analyze.report.io.DirectoryBasedReportOutput

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.