remove charting feature

This commit is contained in:
Jonathan Shook 2023-09-27 23:57:25 -05:00
parent 722ac6571a
commit 3681bb3a88
5 changed files with 4 additions and 22 deletions

View File

@ -505,10 +505,6 @@ public class Scenario extends NBBaseComponent implements Callable<ExecutionMetri
return this.state;
}
public void enableCharting() {
final MetricRegistry metricRegistry = ActivityMetrics.getMetricRegistry();
}
public String getReportSummaryTo() {
return this.reportSummaryTo;
}

View File

@ -381,14 +381,11 @@ public class ActivityMetrics {
* @param showChart
* whether to chart metrics on console
*/
public static void closeMetrics(boolean showChart) {
public static void closeMetrics() {
logger.trace("Closing all registered metrics closable objects.");
for (MetricsCloseable metricsCloseable : metricsCloseables) {
logger.trace(() -> "closing metrics closeable: " + metricsCloseable);
metricsCloseable.closeMetrics();
if (showChart) {
metricsCloseable.chart();
}
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 nosqlbench
* Copyright (c) 2022-2023 nosqlbench
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -136,11 +136,6 @@ public class HistoIntervalLogger extends CapabilityHook<HdrDeltaHistogramAttach
logStream.close();
}
@Override
public void chart() {
HistoLogChartGenerator.generateChartFromHistoLog(this);
}
private static class WriterTarget implements Comparable<WriterTarget> {
public String name;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 nosqlbench
* Copyright (c) 2022-2023 nosqlbench
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -127,11 +127,6 @@ public class HistoStatsLogger extends CapabilityHook<HdrDeltaHistogramAttachment
}
}
@Override
public void chart() {
// nothing-to-do we only chart HistoIntervals not HistoStats
}
private static class WriterTarget implements Comparable<WriterTarget> {
public String name;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 nosqlbench
* Copyright (c) 2022-2023 nosqlbench
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -18,5 +18,4 @@ package io.nosqlbench.api.engine.metrics;
public interface MetricsCloseable {
void closeMetrics();
void chart();
}