minor updates, notes collected into gh issues

This commit is contained in:
Jonathan Shook
2023-10-06 17:08:21 -05:00
parent bf2b16bbe3
commit 7be8fd0708
5 changed files with 2 additions and 8 deletions

View File

@@ -242,10 +242,6 @@ public class NBCLI implements Function<String[], Integer>, NBLabeledElement {
NBIO.addGlobalIncludes(options.wantsIncludes()); NBIO.addGlobalIncludes(options.wantsIncludes());
// TODO: metrics
// ActivityMetrics.setHdrDigits(options.getHdrDigits());
// ActivityMetrics.setLabelValidator(options.getAnnotateLabelSpec());
if (options.wantsBasicHelp()) { if (options.wantsBasicHelp()) {
System.out.println(this.loadHelpFile("basic.md")); System.out.println(this.loadHelpFile("basic.md"));
return NBCLI.EXIT_OK; return NBCLI.EXIT_OK;
@@ -366,7 +362,6 @@ public class NBCLI implements Function<String[], Integer>, NBLabeledElement {
.build() .build()
); );
// TODO: metrics
// if ((null != reportPromPushTo) || (null != reportGraphiteTo) || (null != options.wantsReportCsvTo())) { // if ((null != reportPromPushTo) || (null != reportGraphiteTo) || (null != options.wantsReportCsvTo())) {
// final MetricReporters reporters = MetricReporters.getInstance(); // final MetricReporters reporters = MetricReporters.getInstance();
// reporters.addRegistry("workloads", ActivityMetrics.getMetricRegistry()); // reporters.addRegistry("workloads", ActivityMetrics.getMetricRegistry());

View File

@@ -422,7 +422,7 @@ public class ActivityExecutor implements NBLabeledElement, ActivityController, P
this.exception = e; this.exception = e;
} finally { } finally {
stoppedAt = System.currentTimeMillis(); stoppedAt = System.currentTimeMillis();
unregisterMetrics(); // TODO: close out metrics outputs on component tree if needed
activity.shutdownActivity(); activity.shutdownActivity();
activity.closeAutoCloseables(); activity.closeAutoCloseables();
ExecutionResult result = new ExecutionResult(startedAt, stoppedAt, "", exception); ExecutionResult result = new ExecutionResult(startedAt, stoppedAt, "", exception);

View File

@@ -424,7 +424,6 @@ public class ActivitiesController extends NBBaseComponent {
} }
public void reportMetrics() { public void reportMetrics() {
// TODO: metrics
// ActivityMetrics.reportTo(System.out); // ActivityMetrics.reportTo(System.out);
} }

View File

@@ -57,7 +57,6 @@ public class RelevancyMeasures implements NBLabeledElement {
for (RelevancyFunction function : f) { for (RelevancyFunction function : f) {
this.functions.add(function); this.functions.add(function);
function.prependLabels(this); function.prependLabels(this);
// TODO: metrics
// DoubleSummaryGauge gauge = ActivityMetrics.summaryGauge(function, function.getUniqueName()); // DoubleSummaryGauge gauge = ActivityMetrics.summaryGauge(function, function.getUniqueName());
// this.gauges.add(gauge); // this.gauges.add(gauge);
} }

View File

@@ -85,6 +85,7 @@ public class ScriptExampleTests {
return scenarioResult; return scenarioResult;
} }
@Disabled
@BeforeAll @BeforeAll
public static void logit() { public static void logit() {
System.out.println("Running ASYNC version of Script Integration Tests."); System.out.println("Running ASYNC version of Script Integration Tests.");