Exemple #1
0
echo ProfilerToolbar::$version;
?>
 for Kohana v<?php 
echo ProfilerToolbar::$kohana_version;
?>
"></span>
    </li>
    <?php 
if (ProfilerToolbar::cfg('html.showTotalInfo')) {
    ?>
      <li class="time" title="application execution time">  <span class="icon"></span> <?php 
    echo ProfilerToolbar::formatTime(ProfilerToolbar::$DATA_APP_TIME);
    ?>
</li>
      <li class="ram" title="memory peak usage">            <span class="icon"></span> <?php 
    echo ProfilerToolbar::formatMemory(ProfilerToolbar::$DATA_APP_MEMORY);
    ?>
</li>
    <?php 
}
?>
    <?php 
if (ProfilerToolbar::cfg('html.showSql')) {
    ?>
      <?php 
    $_total = 0;
    foreach (ProfilerToolbar::$DATA_SQL as $v) {
        $_total += $v['total']['count'];
    }
    ?>
      <li class="sql">      <span class="icon"></span> sql <span class="total">(<?php 
 /**
  *
  */
 private static function appendIncFiles()
 {
     self::$_fb->group('Files (' . self::$DATA_INC_FILES['total']['count'] . ')', ['Collapsed' => true]);
     $tbl = [0 => ['№', 'file', 'size', 'lines', 'last modified']];
     $num = 0;
     foreach (self::$DATA_INC_FILES['data'] as $file) {
         $tbl[] = [++$num, $file['name'], ProfilerToolbar::formatMemory($file['size']), number_format($file['lines']), date("Y.m.d H:i:s", $file['lastModified'])];
     }
     self::$_fb->table('Files', $tbl);
     self::$_fb->groupEnd();
 }
Exemple #3
0
						<?php 
    echo date("Y.m.d", $file['lastModified']);
    ?>
&nbsp;&nbsp;<?php 
    echo date("H:i:s", $file['lastModified']);
    ?>
					</td>
				</tr>
			<?php 
}
?>
			<tr class="total">
				<th></th>
				<th>total <?php 
echo ProfilerToolbar::$DATA_INC_FILES['total']['count'];
?>
 files</th>
				<th class="tRight"><?php 
echo ProfilerToolbar::formatMemory(ProfilerToolbar::$DATA_INC_FILES['total']['size']);
?>
</th>
				<th class="tRight"><?php 
echo number_format(ProfilerToolbar::$DATA_INC_FILES['total']['lines']);
?>
</th>
				<th></th>
			</tr>
			</tbody>
		</table>
	</div>
</div>
Exemple #4
0
        ?>
</td>
          <td><?php 
        echo $v['type'];
        ?>
</td>
          <td><?php 
        echo $v['tmp_name'];
        ?>
</td>
          <td><?php 
        echo $v['error'];
        ?>
</td>
          <td><?php 
        echo ProfilerToolbar::formatMemory($v['size']);
        ?>
</td>
        </tr>
        <?php 
    }
    ?>
      <?php 
}
?>
      </tbody>
    </table>
  </div>
  <div class="ptb_tab_cont" id="ptb_tab_cont_varsCS">
    <!-- COOKIE/SESSION -->
    <?php 
Exemple #5
0
							</td>
						</tr>
					<?php 
        }
        ?>
					<tr class="total">
						<td></td>
						<td>total <?php 
        echo $group['total']['count'];
        ?>
 queries</td>
						<td></td>
						<td class="tRight"><?php 
        echo ProfilerToolbar::formatTime($group['total']['time']);
        ?>
</td>
						<td class="tRight"><?php 
        echo ProfilerToolbar::formatMemory($group['total']['memory']);
        ?>
</td>
					</tr>
					</tbody>
				</table>
			</div>
		<?php 
    }
    ?>
	<?php 
}
?>
</div>