code: public MemoryMeter enableDebug(int depth) {
          if (depth <= 0)
              throw new IllegalArgumentException(String.format("the depth must be greater than zero (was %s).", depth));
          return new MemoryMeter(trackerProvider,
                                 includeFullBufferSize,
                                 guess,
                                 ignoreOuterClassReference,
                                 ignoreKnownSingletons,
                                 ignoreNonStrongReferences,
                                 new TreePrinter.Factory(depth));
      }
docs: Makes this <code>MemoryMeter</code> prints the classes tree to <code>System.out</code> up to the specified depth
  when measuring
  @param depth the maximum depth for which the class tree must be printed