我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

查找codeigniter视图渲染所花费的时间

I am loading 3 views in CI controller. How may i compute the time taken by all the three views to render completely? Any help?

Use the Codeigniter Native function

Place it in your footer OR end of the page

<strong>Page Execution Time {elapsed_time}</strong>

Read more here from Codeigniter Docs Benchmarking Class

As mentioned in my comment, you can use microtime or similar to do so:

  1. First, get time before Render
  2. Then proceed to render
  3. Finally, get time after render and compute difference

近期文章

  • 从管理员创建订单的WooCommerce钩子
  • PHP Wordpress字符串连接不起作用
  • Wordpress - 如果第一篇帖子添加了所选的课程
  • Laravel 5.4在验证后重定向到模态
  • 在Altervista上传Twitter API 1.1错误215
  • 如何检查JSON是否正确接收
  • 将设置字段添加到WP子菜单页面
  • 从我的mysql数据库php输出三列
  • 易趣API数量未返回实际价值
  • 在PHP中计算行时出错号[重复]
  • 修改多维数组的当前值
  • 将pdf文件列表保存到zip并下载
  • 如何在preg_match模式中留出空间?
  • 如何在Drupal 8中获取当前用户对象?
  • twig扩展 - php相当于twig的包含
  • 暴露异常消息是否安全?
  • 试图理解DateTime :: diff()函数
  • 将ajax响应转换为特定格式?
  • 只有帖子作者才能回复帖子评论
  • 如何为字段ActiveForm创建事件onchange

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华