PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/protected/modules/yupe/widgets/views/stat.php

https://github.com/Telrik/yupe
PHP | 15 lines | 13 code | 2 blank | 0 comment | 6 complexity | ebd841bd901f2a8ecc3736137628b4a8 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <?php if(defined('YII_DEBUG') && YII_DEBUG):?>
  2. <?php
  3. echo '<div class="stat" id="stat">';
  4. if(Yii::app()->db->enableParamLogging == true || Yii::app()->db->enableProfiling == true){
  5. echo Yii::t('YupeModule.yupe','requests: {qcount}',array('{qcount}' => $dbStat[0]));
  6. echo Yii::t('YupeModule.yupe',' time: {qtime}',array('{qtime}' => round($dbStat[1],3)));
  7. }
  8. echo"<div>";
  9. echo Yii::t('YupeModule.yupe','memory: {memory}',array('{memory}' => $memory));
  10. echo Yii::t('YupeModule.yupe',' run in: {time}',array('{time}' => $time));
  11. echo"</div>";
  12. ?>
  13. <?php endif;?>