code: private static void stopAllocCounting() {
          Runtime.getRuntime().gc();
          Runtime.getRuntime().runFinalization();
          Runtime.getRuntime().gc();
          Debug.stopAllocCounting();
      }
docs: /*
  Stops allocation counting.