#1865 - ENH: Add metric collection for ORM insert update and delete

This commit is contained in:
rob bygrave
2019-11-19 20:31:48 +13:00
parent fee6a9f04a
commit 8761c0486d
2 changed files with 4 additions and 3 deletions
@@ -44,8 +44,7 @@ class DTimeMetricStats implements TimedMetricStats {
}
sb.append("count:").append(count)
.append(" total:").append(total)
.append(" max:").append(max)
.append(" beanCount:").append(beanCount);
.append(" max:").append(max);
if (location != null) {
sb.append(" loc:").append(location);
}
@@ -82,9 +82,11 @@ public class TestBatchInsertFlush extends BaseTestCase {
for (MetaTimedMetric txnMetric : txnStats) {
System.out.println(txnMetric);
}
assertThat(txnStats).hasSize(2);
assertThat(txnStats).hasSize(4);
assertThat(txnStats.get(0).getName()).isEqualTo("txn.main");
assertThat(txnStats.get(1).getName()).isEqualTo("txn.named.TestBatchInsertFlush.no_cascade");
assertThat(txnStats.get(2).getName()).isEqualTo("iud.TSDetail.insertBatch");
assertThat(txnStats.get(3).getName()).isEqualTo("iud.TSMaster.insertBatch");
}
@Test