controller->loadData($tag);
$timings = $this->panel->calculateTimings();
if (!isset($timings[$seq])) {
throw new HttpException(404, 'Log message not found.');
}
$query = $timings[$seq]['info'];
$result = $this->panel->getDb()->createCommand('EXPLAIN ' . $query)->queryOne();
if (isset($result['id'])) {
unset($result['id']);
}
$output = [];
foreach ($result as $key => $value) {
if ($value) {
$output[] = sprintf('%s: %s', $key, $value);
}
}
return implode('
', $output);
}
}