diff --git a/core/kpi.class.inc.php b/core/kpi.class.inc.php
index 42060081b9..0ee2b55586 100644
--- a/core/kpi.class.inc.php
+++ b/core/kpi.class.inc.php
@@ -514,4 +514,9 @@ class ExecutionKPI
{
return self::$m_aExecData;
}
+
+ static public function getStats()
+ {
+ return self::$m_aStats;
+ }
}
diff --git a/sources/DI/Profiler/OQLCollector.php b/sources/DI/Profiler/OQLCollector.php
index 700b0501d3..92cb253db3 100644
--- a/sources/DI/Profiler/OQLCollector.php
+++ b/sources/DI/Profiler/OQLCollector.php
@@ -27,13 +27,19 @@ class OQLCollector extends AbstractDataCollector
public function collect(Request $request, Response $response, \Throwable $exception = null)
{
$this->data = [
- 'execution' => ExecutionKPI::getExecData()
+ 'exec_data' => ExecutionKPI::getExecData(),
+ 'stats' => ExecutionKPI::getStats()
];
}
- public function getRequests()
+ public function getExecData()
{
- return $this->data['execution'];
+ return $this->data['exec_data'];
+ }
+
+ public function getStats()
+ {
+ return $this->data['stats'];
}
public static function getTemplate(): ?string
diff --git a/templates/DI/profiler/oql.html.twig b/templates/DI/profiler/oql.html.twig
index 48406add10..405162bba8 100644
--- a/templates/DI/profiler/oql.html.twig
+++ b/templates/DI/profiler/oql.html.twig
@@ -30,13 +30,29 @@
{% block panel %}
{# Optional, for showing the most details. #}
iTop KPI
+
+ Exec data
+
- {% for request in collector.requests %}
+ {% for execData in collector.execData %}
- | {{ dump(request) }} |
+ {{ dump(execData) }} |
{% endfor %}
+
+ Stats
+
+
+
+ {% for stats in collector.stats %}
+
+ | {{ dump(stats) }} |
+
+ {% endfor %}
+
+
+
{% endblock %}
\ No newline at end of file