File tree 2 files changed +13
-0
lines changed
core/src/main/java/com/arangodb/entity
driver/src/test/java/com/arangodb
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,8 @@ public static final class ExecutionStats {
278
278
private Integer rulesExecuted ;
279
279
private Integer rulesSkipped ;
280
280
private Integer plansCreated ;
281
+ private Long peakMemoryUsage ;
282
+ private Double executionTime ;
281
283
282
284
public Integer getRulesExecuted () {
283
285
return rulesExecuted ;
@@ -291,6 +293,13 @@ public Integer getPlansCreated() {
291
293
return plansCreated ;
292
294
}
293
295
296
+ public Long getPeakMemoryUsage () {
297
+ return peakMemoryUsage ;
298
+ }
299
+
300
+ public Double getExecutionTime () {
301
+ return executionTime ;
302
+ }
294
303
}
295
304
296
305
}
Original file line number Diff line number Diff line change @@ -1019,6 +1019,10 @@ void explainQuery(ArangoDatabase db) {
1019
1019
assertThat (plan .getEstimatedNrItems ()).isPositive ();
1020
1020
assertThat (plan .getVariables ()).hasSize (2 );
1021
1021
assertThat (plan .getNodes ()).isNotEmpty ();
1022
+ if (isAtLeastVersion (3 , 10 )) {
1023
+ assertThat (explain .getStats ().getPeakMemoryUsage ()).isNotNull ();
1024
+ assertThat (explain .getStats ().getExecutionTime ()).isNotNull ();
1025
+ }
1022
1026
}
1023
1027
1024
1028
@ ParameterizedTest (name = "{index}" )
You can’t perform that action at this time.
0 commit comments