Source:
<code>private IterationStats gatherStats() { Stressor[] threads = backgroundOpsManager.getThreadManager().getStressorThreads(); List<Statistics> stats; if (threads == null) { stats = Collections.EMPTY_LIST; } else { stats = Arrays.asList(threads).stream().filter(t -> t != null).map(t -> t.getStatsSnapshot(true)).collect(Collectors.toList()); } Timeline timeline = backgroundOpsManager.getSlaveState().getTimeline(); long now = TimeService.currentTimeMillis(); long cacheSize = sizeThread.getAndResetSize(); timeline.addValue(Timeline.Category.customCategory(CACHE_SIZE), new Timeline.Value(now, cacheSize)); if (stats.isEmpty()) { for (Timeline.Category valueCategory : timeline.getValueCategories()) { if (valueCategory.getName().endsWith(" Throughput")) { <START> timeline.addValue(valueCategory, new Timeline.Value(now)); <END> } } } else { Statistics aggregated = stats.stream().reduce(Statistics.MERGE).orElseThrow(() -> new IllegalStateException("No statistics!")); for (String operation : aggregated.getOperations()) { OperationThroughput throughput = aggregated.getRepresentation(operation, OperationThroughput.class); Timeline.Category category = Timeline.Category.customCategory(operation + " Throughput"); if (throughput != null && (throughput.gross != 0 || timeline.getValues(category) != null)) { timeline.addValue(category, new Timeline.Value(now, throughput.gross)); } } } log.trace(String.format("Adding iteration %d: %s.", BackgroundStatisticsManager.this.stats.size(), stats)); return new IterationStats(stats, cacheSize); }</code><technical_language>I this new Timeline.Value(0) (the timestamp filled in constructor). Other 2 occurrences of new Timeline.Value() replaced single-arg constructor variable removed</technical_language>

Target:
private IterationStats gatherStats() { Stressor[] threads = backgroundOpsManager.getThreadManager().getStressorThreads(); List<Statistics> stats; if (threads == null) { stats = Collections.EMPTY_LIST; } else { stats = Arrays.asList(threads).stream().filter(t -> t != null).map(t -> t.getStatsSnapshot(true)).collect(Collectors.toList()); } Timeline timeline = backgroundOpsManager.getSlaveState().getTimeline(); long now = TimeService.currentTimeMillis(); long cacheSize = sizeThread.getAndResetSize(); timeline.addValue(Timeline.Category.customCategory(CACHE_SIZE), new Timeline.Value(now, cacheSize)); if (stats.isEmpty()) { for (Timeline.Category valueCategory : timeline.getValueCategories()) { if (valueCategory.getName().endsWith(" Throughput")) { timeline.addValue(valueCategory, new Timeline.Value(now, 0)); } } } else { Statistics aggregated = stats.stream().reduce(Statistics.MERGE).orElseThrow(() -> new IllegalStateException("No statistics!")); for (String operation : aggregated.getOperations()) { OperationThroughput throughput = aggregated.getRepresentation(operation, OperationThroughput.class); Timeline.Category category = Timeline.Category.customCategory(operation + " Throughput"); if (throughput != null && (throughput.gross != 0 || timeline.getValues(category) != null)) { timeline.addValue(category, new Timeline.Value(now, throughput.gross)); } } } log.trace(String.format("Adding iteration %d: %s.", BackgroundStatisticsManager.this.stats.size(), stats)); return new IterationStats(stats, cacheSize); }