debugging updates

This commit is contained in:
Jonathan Shook 2022-03-11 16:07:49 -06:00
parent 15c9632ad8
commit f80aab49da
2 changed files with 17 additions and 0 deletions

View File

@ -7,6 +7,8 @@ scenarios:
schema: run driver=dynamodb tags==block:schema threads==1 cycles==UNDEF
rampup: run driver=dynamodb tags==block:rampup cycles===TEMPLATE(rampup-cycles,10000000) threads=auto
main: run driver=dynamodb tags=='block:main.*' cycles===TEMPLATE(main-cycles,10000000) threads=auto
delete:
table: run driver=dynamodb tags==block:delete threads==1 cycles==UNDEF
main-read: run driver=dynamodb tags==block:main-read cycles===TEMPLATE(main-cycles,10000000) threads=auto
main-write: run driver=dynamodb tags==block:main-write cycles===TEMPLATE(main-cycles,10000000) threads=auto
@ -52,3 +54,8 @@ blocks:
GetItem: TEMPLATE(table,keyvalue)
key:
partkey: "{rw_key}"
delete:
ops:
delete-table:
DeleteTable: TEMPLATE(table,keyvalue)

View File

@ -127,4 +127,14 @@ public class StmtsDocList implements Iterable<StmtsDoc> {
return cfgmodel.asReadOnly();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
int stmtcount = this.rawStmtsDocList.getStmtsDocs().stream().mapToInt(rsd -> rsd.getRawStmtDefs().size()).sum();
int docscount = this.rawStmtsDocList.getStmtsDocs().size();
sb.append("[" + docscount + "] docs, [" + stmtcount + "] stmts");
String names = this.rawStmtsDocList.getStmtsDocs().stream().flatMap(sd -> sd.getRawStmtDefs().stream()).map(d->d.getName()).collect(Collectors.joining(","));
sb.append(", names:").append(names);
return sb.toString();
}
}