diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-10-31 22:12:14 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-10-31 22:12:14 +0000 |
| commit | eba717f95f586d2538007bd18da6e9b32b076c30 (patch) | |
| tree | 15fc596a270f9de0d163c66c96e3c65fca5ee100 /kohana/views/kohana_profiler.php | |
| parent | fff10f8b70376ef25722bd867df26bc5aefced43 (diff) | |
Merge over vendor code.
git-svn-id: http://gallery.svn.sourceforge.net/svnroot/gallery/trunk/eval/gx/gallery3/trunk@18408 57fcd75e-5312-0410-8df3-f5eb6fbb1595
Diffstat (limited to 'kohana/views/kohana_profiler.php')
| -rw-r--r-- | kohana/views/kohana_profiler.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/kohana/views/kohana_profiler.php b/kohana/views/kohana_profiler.php new file mode 100644 index 00000000..a16c018b --- /dev/null +++ b/kohana/views/kohana_profiler.php @@ -0,0 +1,36 @@ +<style type="text/css"> +#kohana-profiler +{ + font-family: Monaco, 'Courier New'; + background-color: #F8FFF8; + margin-top: 20px; + clear: both; + padding: 10px 10px 0; + border: 1px solid #E5EFF8; + text-align: left; +} +#kohana-profiler pre +{ + margin: 0; + font: inherit; +} +#kohana-profiler .kp-meta +{ + margin: 0 0 10px; + padding: 4px; + background: #FFF; + border: 1px solid #E5EFF8; + color: #A6B0B8; + text-align: center; +} +<?php echo $styles ?> +</style> +<div id="kohana-profiler"> +<?php +foreach ($profiles as $profile) +{ + echo $profile->render(); +} +?> +<p class="kp-meta">Profiler executed in <?php echo number_format($execution_time, 3) ?>s</p> +</div>
\ No newline at end of file |
