class MemoryUseSubSingleStatisticListener implements Consumer<Long> {

        private long nextTimeMillisThreshold = timeMillisThresholdInterval;
        private final StatisticRegistry<?> registry;
        private final Tags tags;

        public MemoryUseSubSingleStatisticListener(StatisticRegistry<?> registry, Tags tags) {
            this.registry = registry;
            this.tags = tags;
        }

        @Override
        public void accept(Long timeMillisSpent) {<FILL_FUNCTION_BODY>}

    }

            if (timeMillisSpent >= nextTimeMillisThreshold) {
                registry.getGaugeValue(SolverMetric.MEMORY_USE, tags,
                        memoryUse -> pointList.add(
                                new MemoryUseStatisticPoint(timeMillisSpent, memoryUse.longValue(),
                                        (long) registry.find("jvm.memory.max").tags(tags).gauge().value())));

                nextTimeMillisThreshold += timeMillisThresholdInterval;
                if (nextTimeMillisThreshold < timeMillisSpent) {
                    nextTimeMillisThreshold = timeMillisSpent;
                }
            }
        
<methods>public org.optaplanner.benchmark.config.statistic.ProblemStatisticType getStatisticType() ,public java.lang.String toString() <variables>protected org.optaplanner.benchmark.config.statistic.ProblemStatisticType problemStatisticType