Skip to content

Commit

Permalink
add toString to JLBHOptions. Closes #52
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryShea committed Sep 1, 2023
1 parent 2c6c65e commit 876140b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/main/java/net/openhft/chronicle/jlbh/JLBHOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,28 @@ public JLBHOptions timeout(long timeout) {
return this;
}

@Override
public String toString() {
final StringBuffer sb = new StringBuffer("JLBHOptions{");
sb.append("runs=").append(runs);
sb.append(", iterations=").append(iterations);
sb.append(", warmUpIterations=").append(warmUpIterations);
sb.append(", pauseAfterWarmupMS=").append(pauseAfterWarmupMS);
sb.append(", accountForCoordinatedOmission=").append(accountForCoordinatedOmission);
sb.append(", skipFirstRun=").append(skipFirstRun);
sb.append(", recordOSJitter=").append(recordOSJitter);
sb.append(", recordJitterGreaterThanNs=").append(recordJitterGreaterThanNs);
sb.append(", throughput=").append(throughput);
sb.append(", throughputTimeUnit=").append(throughputTimeUnit);
sb.append(", latencyDistributor=").append(latencyDistributor);
sb.append(", jitterAffinity=").append(jitterAffinity);
sb.append(", timeout=").append(timeout);
sb.append(", jlbhTask=").append(jlbhTask);
sb.append(", acquireLock=").append(acquireLock);
sb.append('}');
return sb.toString();
}

enum SKIP_FIRST_RUN {
NOT_SET, SKIP, NO_SKIP
}
Expand Down

0 comments on commit 876140b

Please sign in to comment.