File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
main/java/com/arangodb/entity Expand file tree Collapse file tree 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 {
252252 private Integer rulesExecuted ;
253253 private Integer rulesSkipped ;
254254 private Integer plansCreated ;
255+ private Long peakMemoryUsage ;
256+ private Double executionTime ;
255257
256258 public Integer getRulesExecuted () {
257259 return rulesExecuted ;
@@ -265,6 +267,13 @@ public Integer getPlansCreated() {
265267 return plansCreated ;
266268 }
267269
270+ public Long getPeakMemoryUsage () {
271+ return peakMemoryUsage ;
272+ }
273+
274+ public Double getExecutionTime () {
275+ return executionTime ;
276+ }
268277 }
269278
270279 private ExecutionPlan plan ;
Original file line number Diff line number Diff line change @@ -1009,6 +1009,10 @@ void explainQuery(ArangoDatabase db) {
10091009 assertThat (plan .getEstimatedNrItems ()).isPositive ();
10101010 assertThat (plan .getVariables ()).hasSize (2 );
10111011 assertThat (plan .getNodes ()).isNotEmpty ();
1012+ if (isAtLeastVersion (3 , 10 )) {
1013+ assertThat (explain .getStats ().getPeakMemoryUsage ()).isNotNull ();
1014+ assertThat (explain .getStats ().getExecutionTime ()).isNotNull ();
1015+ }
10121016 }
10131017
10141018 @ ParameterizedTest (name = "{index}" )
You can’t perform that action at this time.
0 commit comments