new SortedTreeSizeReport(reportOutput)));
ITreeFilter filter = new TypeFilter(Class.class);
ISerializedObjectTreeProcessor cleanedTreeProcessor = new TreeTransformator(treeProcessor,
TreeTransformator.strip(filter));
ISerializationListener listener = SerializationListeners.listOf(
new DefaultJavaSerializationValidator(), new LoggingSerializationListener(),
new AnalyzingSerializationListener(labelizer, treeProcessor),
new AnalyzingSerializationListener(labelizer, cleanedTreeProcessor));
InspectingKryoSerializer kryo = new InspectingKryoSerializer(Bytes.bytes(1000), listener);
byte[] data = kryo.serialize(root);