1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-02 20:27:35 +02:00

Dibi\Bridges\Tracy\Panel: host added to tracy panel [closes #250] (#251)

This commit is contained in:
Jiří Trávníček
2017-06-09 11:50:01 +02:00
committed by David Grudl
parent ae6c8756b6
commit 36d30c1fcf

View File

@@ -143,7 +143,8 @@ class Panel implements Tracy\IBarPanel
#tracy-debug tracy-DibiProfiler tr table { margin: 8px 0; max-height: 150px; overflow:auto } </style>
<h1>Queries: ' . count($this->events)
. ($totalTime === NULL ? '' : sprintf(', time: %0.3f ms', $totalTime * 1000)) . ', '
. htmlSpecialChars($connection->getConfig('driver') . ($connection->getConfig('name') ? '/' . $connection->getConfig('name') : '')) . '</h1>
. htmlSpecialChars($connection->getConfig('driver') . ($connection->getConfig('name') ? '/' . $connection->getConfig('name') : '')
. ($connection->getConfig('host') ? ' @ ' . $connection->getConfig('host') : '')) . '</h1>
<div class="tracy-inner tracy-DibiProfiler">
<table>
<tr><th>Time&nbsp;ms</th><th>SQL Statement</th><th>Rows</th></tr>' . $s . '