mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-23 21:15:52 +00:00
#1865 - ENH: Add metric collection for ORM insert update and delete
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user