File tree 2 files changed +13
-0
lines changed
main/java/com/arangodb/entity
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,8 @@ public static class ExecutionStats {
252
252
private Integer rulesExecuted ;
253
253
private Integer rulesSkipped ;
254
254
private Integer plansCreated ;
255
+ private Long peakMemoryUsage ;
256
+ private Double executionTime ;
255
257
256
258
public Integer getRulesExecuted () {
257
259
return rulesExecuted ;
@@ -265,6 +267,13 @@ public Integer getPlansCreated() {
265
267
return plansCreated ;
266
268
}
267
269
270
+ public Long getPeakMemoryUsage () {
271
+ return peakMemoryUsage ;
272
+ }
273
+
274
+ public Double getExecutionTime () {
275
+ return executionTime ;
276
+ }
268
277
}
269
278
270
279
private ExecutionPlan plan ;
Original file line number Diff line number Diff line change @@ -1009,6 +1009,10 @@ void explainQuery(ArangoDatabase db) {
1009
1009
assertThat (plan .getEstimatedNrItems ()).isPositive ();
1010
1010
assertThat (plan .getVariables ()).hasSize (2 );
1011
1011
assertThat (plan .getNodes ()).isNotEmpty ();
1012
+ if (isAtLeastVersion (3 , 10 )) {
1013
+ assertThat (explain .getStats ().getPeakMemoryUsage ()).isNotNull ();
1014
+ assertThat (explain .getStats ().getExecutionTime ()).isNotNull ();
1015
+ }
1012
1016
}
1013
1017
1014
1018
@ ParameterizedTest (name = "{index}" )
You can’t perform that action at this time.
0 commit comments