code: public void addMemoryUsage(long memoryUsed) {
          totalMemoryUsage.increaseByLong(memoryUsed);
          minMemoryUsage.setValueIfLesserThanCurrentAsLong(memoryUsed);
          maxMemoryUsage.setValueIfGreaterThanCurrentAsLong(memoryUsed);
      }
docs: Adds memory used by script call
  @param memoryUsed amount of memory used in bytes