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)));