static Map cumulativeObjectSizeByClass(Iterable l) { new Map map; fOr (O o : l) { continue if o == null; Class c = o.getClass(); map.put(c, toLong(map.get(c)) + unsafe_sizeOf2(o)); } ret map; }