当前位置: 首页>>代码示例>>PHP>>正文


PHP Debugger::get_database_queries方法代码示例

本文整理汇总了PHP中Debugger::get_database_queries方法的典型用法代码示例。如果您正苦于以下问题:PHP Debugger::get_database_queries方法的具体用法?PHP Debugger::get_database_queries怎么用?PHP Debugger::get_database_queries使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Debugger的用法示例。


在下文中一共展示了Debugger::get_database_queries方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: count

				<?php 
    echo Text::bytes(Debugger::get_benchmark_application()->current['memory']);
    ?>
			</li>
			<?php 
}
?>

			<!-- Database -->
			<?php 
if (Kohana::$config->load('debugger.panels.database')) {
    ?>
			<li id="toggle-database" onclick="debugToolbar.show('debug-database'); return false;">
				<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAEYSURBVBgZBcHPio5hGAfg6/2+R980k6wmJgsJ5U/ZOAqbSc2GnXOwUg7BESgLUeIQ1GSjLFnMwsKGGg1qxJRmPM97/1zXFAAAAEADdlfZzr26miup2svnelq7d2aYgt3rebl585wN6+K3I1/9fJe7O/uIePP2SypJkiRJ0vMhr55FLCA3zgIAOK9uQ4MS361ZOSX+OrTvkgINSjS/HIvhjxNNFGgQsbSmabohKDNoUGLohsls6BaiQIMSs2FYmnXdUsygQYmumy3Nhi6igwalDEOJEjPKP7CA2aFNK8Bkyy3fdNCg7r9/fW3jgpVJbDmy5+PB2IYp4MXFelQ7izPrhkPHB+P5/PjhD5gCgCenx+VR/dODEwD+A3T7nqbxwf1HAAAAAElFTkSuQmCC" alt="database">
				<?php 
    echo count(Debugger::get_database_queries());
    ?>
			</li>
			<?php 
}
?>

			<!-- Vars -->
			<?php 
if (Kohana::$config->load('debugger.panels.vars')) {
    ?>
			<li id="toggle-vars" onclick="debugToolbar.show('debug-vars'); return false;">
				<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFWSURBVBgZBcE/SFQBAAfg792dppJeEhjZn80MChpqdQ2iscmlscGi1nBPaGkviKKhONSpvSGHcCrBiDDjEhOC0I68sjvf+/V9RQCsLHRu7k0yvtN8MTMPICJieaLVS5IkafVeTkZEFLGy0JndO6vWNGVafPJVh2p8q/lqZl60DpIkaWcpa1nLYtpJkqR1EPVLz+pX4rj47FDbD2NKJ1U+6jTeTRdL/YuNrkLdhhuAZVP6ukqbh7V0TzmtadSEDZXKhhMG7ekZl24jGDLgtwEd6+jbdWAAEY0gKsPO+KPy01+jGgqlUjTK4ZroK/UVKoeOgJ5CpRyq5e2qjhF1laAS8c+Ymk1ZrVXXt2+9+fJBYUwDpZ4RR7Wtf9u9m2tF8Hwi9zJ3/tg5pW2FHVv7eZJHd75TBPD0QuYze7n4Zdv+ch7cfg8UAcDjq7mfwTycew1AEQAAAMB/0x+5JQ3zQMYAAAAASUVORK5CYII=" alt="vars">
				vars
			</li>
			<?php 
开发者ID:nexeck,项目名称:kohana-debugger,代码行数:31,代码来源:toolbar.php

示例2: foreach

<div id="debug-database" class="top" style="display: none;">
    <h1>SQL Queries</h1>
    <table cellspacing="0" cellpadding="0">
        <tr align="left">
            <th>#</th>
            <th>query</th>
            <th>time</th>
            <th>memory</th>
        </tr>
        <?php 
foreach (Debugger::get_database_queries() as $db_profile => $stats) {
    ?>
        <tr align="left">
            <th colspan="4">DATABASE "<?php 
    echo strtoupper($db_profile);
    ?>
"</th>
        </tr>
        <?php 
    foreach ($stats as $num => $query) {
        ?>
            <tr class="<?php 
        echo Text::alternate('odd', 'even');
        ?>
">
                <td><?php 
        echo $num + 1;
        ?>
</td>
                <td><?php 
        echo HTML::entities($query['name']);
开发者ID:nexeck,项目名称:kohana-debugger,代码行数:31,代码来源:database.php

示例3: _collect_data

 /**
  * Collect the data
  *
  * @static
  */
 protected static function _collect_data()
 {
     Debugger::get_benchmark_application();
     if (Kohana::$config->load('debugger.panels.benchmarks')) {
         Debugger::get_benchmark_groups();
     }
     if (Kohana::$config->load('debugger.panels.database')) {
         Debugger::get_database_queries();
     }
     if (Kohana::$config->load('debugger.panels.files')) {
         Debugger::get_files();
     }
     if (Kohana::$config->load('debugger.panels.modules')) {
         Debugger::get_modules();
     }
     if (Kohana::$config->load('debugger.panels.routes')) {
         Debugger::get_routes();
     }
     if (Kohana::$config->load('debugger.panels.messages')) {
         Debugger::get_messages();
     }
     if (Kohana::$config->load('debugger.panels.stacktraces')) {
         Debugger::get_stacktraces();
     }
 }
开发者ID:nexeck,项目名称:kohana-debugger,代码行数:30,代码来源:debugger.php


注:本文中的Debugger::get_database_queries方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。