};
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)
{
return source.type() != Class.class;
}
};
ISerializedObjectTreeProcessor cleanedTreeProcessor = new TreeTransformator(treeProcessor,
TreeTransformator.strip(filter));
ISerializationListener listener = SerializationListeners
.listOf(new AnalyzingSerializationListener(labelizer, cleanedTreeProcessor));
getFrameworkSettings().setSerializer(new Fast2WicketSerializer().setListener(listener));