public static void objectSize(final String name, final Object object) {
    if (!enabled) {
      return;
    }

    objects.put(name, object);
  }
Registers the named object for size profiling.

@param name of object to size.
@param object to size.
geode-jmh/src/main/java/org/apache/geode/benchmark/jmh/profilers/ObjectSizeProfiler.java