Skip to content

Commit

Permalink
minor updates, notes collected into gh issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jshook committed Oct 6, 2023
1 parent b241d0c commit 261b67d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 14 deletions.
5 changes: 0 additions & 5 deletions engine-cli/src/main/java/io/nosqlbench/engine/cli/NBCLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,6 @@ public Integer applyDirect(final String[] args) {

NBIO.addGlobalIncludes(options.wantsIncludes());

// TODO: metrics
// ActivityMetrics.setHdrDigits(options.getHdrDigits());
// ActivityMetrics.setLabelValidator(options.getAnnotateLabelSpec());

if (options.wantsBasicHelp()) {
System.out.println(this.loadHelpFile("basic.md"));
return NBCLI.EXIT_OK;
Expand Down Expand Up @@ -355,7 +351,6 @@ public Integer applyDirect(final String[] args) {
.build()
);

// TODO: metrics
// if ((null != reportPromPushTo) || (null != reportGraphiteTo) || (null != options.wantsReportCsvTo())) {
// final MetricReporters reporters = MetricReporters.getInstance();
// reporters.addRegistry("workloads", ActivityMetrics.getMetricRegistry());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public ExecutionResult call() throws Exception {
this.exception = e;
} finally {
stoppedAt = System.currentTimeMillis();
unregisterMetrics();
// TODO: close out metrics outputs on component tree if needed
activity.shutdownActivity();
activity.closeAutoCloseables();
ExecutionResult result = new ExecutionResult(startedAt, stoppedAt, "", exception);
Expand Down Expand Up @@ -464,12 +464,6 @@ private void registerMetrics() {
this.activity.create().gauge("threads",() -> (double) this.motors.size());
}

private void unregisterMetrics() {
// TODO: metrics
// ActivityMetrics.unregister(this.threadsGauge);
this.threadsGauge = null;
}

private boolean shutdownExecutorService(int secondsToWait) {

activitylogger.debug(() -> "Shutting down motor executor for (" + activity.getAlias() + ")");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ public List<ActivityDef> getActivityDefs() {
}

public void reportMetrics() {
// TODO: metrics
// ActivityMetrics.reportTo(System.out);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public RelevancyMeasures addFunction(RelevancyFunction... f) {
for (RelevancyFunction function : f) {
this.functions.add(function);
function.prependLabels(this);
// TODO: metrics
// DoubleSummaryGauge gauge = ActivityMetrics.summaryGauge(function, function.getUniqueName());
// this.gauges.add(gauge);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public static ScenarioResult runScenario(String scriptname, String... params) {
return scenarioResult;
}

@Disabled
@BeforeAll
public static void logit() {
System.out.println("Running ASYNC version of Script Integration Tests.");
Expand Down

0 comments on commit 261b67d

Please sign in to comment.