Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

97 lines (87 sloc) 6.055 kb
<div class="zdt-toolbar-entry">
<div class="zdt-toolbar-preview">
<img src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzU1MkQ0QURDODkyMTFFMUE4RDU5MDZBOEM2RTM5QjYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzU1MkQ0QUVDODkyMTFFMUE4RDU5MDZBOEM2RTM5QjYiPiA8eG1wTU06R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sE3cMODQ3JQajVbDYbMEb5VVVVcsykKDs7m/3TlOzu7obQcr6xsbFdaHtPT88hikSY4eHh9xiZS36//2lHR8fy9PR0eSAQUGMUZYhcAM6SteAmhsFebHt7OwyqPKWlpZ+bmpqCRqPxDujRmUwmhsUmU1hYSNCDD1tbW2kKbmzO+Xy+yc3NTS8chPh8Pg/2BP3rYExlSqVSKxQK9XjgRorXSCSSrCyLkYlyVU6JGgfUiI5Q/E7S7hD6KNU88DeJRj2kB/4HfX19X5OO4cxptVrVaNQcCF8mk2WftLoY2xA43+ns7HTabLYn8LfEjI+Pk5qaGiEW15B+FQi+jCKJ8EcWw3kWUmGOp4biRcFtEL87v9PpXMEIvoP5NffLIz8FGAAqeUQbl180BwAAAABJRU5ErkJggg==" alt="Database (Zend\Db)">
<span class="zdt-toolbar-info">
<?php echo $this->collector->getQueryCount(); ?>
queries in
<?php echo $this->ZendDeveloperToolsTime($this->collector->getQueryTime()); ?> s
</span>
</div>
<div class="zdt-toolbar-detail">
<span class="zdt-toolbar-info zdt-toolbar-info-heading">Details</span>
<span class="zdt-toolbar-info">
<span class="zdt-detail-label">Help us!</span>
<span class="zdt-detail-value zdt-detail-value-right">
Please help us improve
<br/>
profiling by forking and
<br/>
contributing to
<br/>
<a href="https://github.com/doctrine/DoctrineORMModule/fork_select" target="_blank">
DoctrineORMModule
</a>
</span>
</span>
<span class="zdt-toolbar-info zdt-toolbar-info-heading">Queries</span>
<span class="zdt-toolbar-info ddt-toolbar-info">
<?php foreach ($this->collector->getQueries() as $query): ?>
<hr/>
<span class="zdt-detail-label">SQL</span>
<span class="zdt-detail-value ddt-detail-query ddt-detail-value">
<?php /* highlight UPPERCASE words in the query, which should mostly match SQL keywords */ ?>
<?php echo preg_replace('/([A-Z]+)/', '<span class="highlight">$1</span>', $query['sql']) ?>
</span>
<span class="clear"></span>
<span class="zdt-detail-label">Params</span>
<span class="zdt-detail-value ddt-detail-value">
<?php if (isset($query['params']) && is_array($query['params'])): ?>
<?php foreach($query['params'] as $key => $value): ?>
&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $key ?> => <?php \Doctrine\Common\Util\Debug::dump($value) ?><br/>
<?php endforeach ?>
<?php endif ?>
</span>
<span class="clear"></span>
<span class="zdt-detail-label">Types</span>
<span class="zdt-detail-value ddt-detail-value">
<?php if (isset($query['types']) && is_array($query['types'])): ?>
<?php foreach($query['types'] as $key => $value): ?>
&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $key ?> => <?php \Doctrine\Common\Util\Debug::dump($value) ?><br/>
<?php endforeach ?>
<?php endif ?>
</span>
<span class="clear"></span>
<span class="zdt-detail-label">Time</span>
<span class="zdt-detail-value ddt-detail-value"><?php echo $query['executionMS'] ?></span>
<span class="clear"></span>
<?php endforeach ?>
</span>
</div>
</div>
<style>
.zdt-toolbar-entry .zdt-toolbar-detail .ddt-toolbar-info {
font-size: 11px;
max-width: 600px;
witdh: 600px;
max-height: 300px;
overflow-y: scroll;
overflow-x: hidden;
}
.zdt-toolbar-entry .zdt-toolbar-detail .ddt-detail-query {
white-space: normal;
width: 400px;
}
.zdt-toolbar-entry .zdt-toolbar-detail .ddt-detail-query .highlight {
color: #80DC09;
font-weight: bold;
}
.zdt-toolbar-entry .zdt-toolbar-info .clear {
clear: both;
display: block;
}
.zdt-toolbar-entry .zdt-toolbar-detail .ddt-toolbar-info hr {
border: 0;
border-top: 1px solid #80DC09;
clear: both;
}
</style>
Jump to Line
Something went wrong with that request. Please try again.