public DefaultSizeOfEngine(long maxObjectGraphSize, long maxObjectSize) { this.maxObjectGraphSize = maxObjectGraphSize; this.maxObjectSize = maxObjectSize; this.sizeOf = SizeOf.newInstance(new SizeOfFilterSource(true).getFilters()); this.onHeapKeyOffset = sizeOf.deepSizeOf(new CopiedOnHeapKey<>(new Object(), new IdentityCopier<>())); this.chmTreeBinOffset = sizeOf.deepSizeOf(ConcurrentHashMap.FAKE_TREE_BIN); }
private void applyMutators() { applyMutators(SizeOfFilterSource.class.getClassLoader()); }
private void applyMutators() { applyMutators(SizeOfFilterSource.class.getClassLoader()); }
public DefaultSizeOfEngine(long maxObjectGraphSize, long maxObjectSize) { this.maxObjectGraphSize = maxObjectGraphSize; this.maxObjectSize = maxObjectSize; this.sizeOf = SizeOf.newInstance(new SizeOfFilterSource(true).getFilters()); this.onHeapKeyOffset = sizeOf.deepSizeOf(new CopiedOnHeapKey<>(new Object(), new IdentityCopier<>())); this.chmTreeBinOffset = sizeOf.deepSizeOf(ConcurrentHashMap.FAKE_TREE_BIN); }
public SizeOfFilterSource(boolean registerAnnotationFilter) { filters.add(typeFilter); if (registerAnnotationFilter) { filters.add(new AnnotationSizeOfFilter()); } applyMutators(); }
public SizeOfFilterSource(boolean registerAnnotationFilter) { filters.add(typeFilter); if (registerAnnotationFilter) { filters.add(new AnnotationSizeOfFilter()); } applyMutators(); }