MDL-66394 analytics: Extra GC during analysis

(backport of MDL-66234)
This commit is contained in:
David Monllaó
2019-09-24 14:08:24 +02:00
committed by Eloy Lafuente (stronk7)
parent 26c79027ff
commit 0a397e3fd2
5 changed files with 21 additions and 5 deletions
+2 -1
View File
@@ -102,6 +102,8 @@ if ($options['reuse-prev-analysed']) {
mtrace(get_string('evaluationinbatches', 'tool_analytics'));
}
$renderer = $PAGE->get_renderer('tool_analytics');
$analyseroptions = array(
'filter' => $options['filter'],
'timesplitting' => $options['timesplitting'],
@@ -114,7 +116,6 @@ $results = $model->evaluate($analyseroptions);
// Reset the page as some indicators may call external functions that overwrite the page context.
\tool_analytics\output\helper::reset_page();
$renderer = $PAGE->get_renderer('tool_analytics');
echo $renderer->render_evaluate_results($results, $model->get_analyser()->get_logs());
// Check that we have, at leasa,t 1 valid dataset (not necessarily good) to use.